mirror of
https://github.com/asmogo/nws.git
synced 2025-01-18 18:11:33 +00:00
updated docker build
This commit is contained in:
parent
640366ef05
commit
c9276935f3
@ -4,14 +4,14 @@ ADD . /build/
|
||||
|
||||
WORKDIR /build
|
||||
RUN apk add --no-cache git bash openssh-client && \
|
||||
go build -o proxy cmd/proxy/*.go
|
||||
go build -o entry cmd/entry/*.go
|
||||
|
||||
|
||||
#building finished. Now extracting single bin in second stage.
|
||||
FROM alpine
|
||||
|
||||
COPY --from=builder /build/proxy /app/
|
||||
COPY --from=builder /build/entry /app/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["./proxy"]
|
||||
CMD ["./entry"]
|
||||
|
Loading…
Reference in New Issue
Block a user