mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Update Dockerfile
This commit is contained in:
@@ -14,9 +14,18 @@
|
|||||||
# 1 Build Image #
|
# 1 Build Image #
|
||||||
#################
|
#################
|
||||||
|
|
||||||
|
ARG GOLANG_VERSION="1.19.1"
|
||||||
|
|
||||||
|
FROM golang:$GOLANG_VERSION-alpine as builder
|
||||||
|
RUN apk --no-cache add tzdata
|
||||||
|
WORKDIR /go/src/github.com/serjs/socks5
|
||||||
|
COPY . .
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5
|
||||||
|
|
||||||
ARG BUILD_VERSION
|
ARG BUILD_VERSION
|
||||||
ARG BUILD_FROM
|
ARG BUILD_FROM
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
COPY --from=builder /go/src/github.com/serjs/socks5/socks5 /
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# 2 Modify Image #
|
# 2 Modify Image #
|
||||||
|
|||||||
Reference in New Issue
Block a user