Trying go
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.12.1 AS builder
|
FROM golang:1.12.1
|
||||||
|
|
||||||
RUN set -ex && \
|
RUN set -ex && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
@@ -12,10 +12,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
RUN GOOS=linux go build -ldflags="-w -s"
|
RUN GOOS=linux go build -ldflags="-w -s"
|
||||||
|
|
||||||
FROM alpine:latest AS production
|
VOLUME /app/Manuals
|
||||||
COPY --from=builder /app .
|
|
||||||
|
|
||||||
VOLUME /Manuals
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
ENTRYPOINT ["Server"]
|
CMD ["/app/Server"]
|
||||||
|
|||||||
Reference in New Issue
Block a user