Kaynağa Gözat

Add Dockerfile

poesty 1 yıl önce
işleme
c039cc8a0a
1 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. 19 0
      Dockerfile

+ 19 - 0
Dockerfile

@@ -0,0 +1,19 @@
+FROM golang:1.13-alpine as build
+
+WORKDIR /app
+
+COPY . .
+
+ENV CGO_ENABLED=0
+
+RUN go build -mod=vendor -o bloat
+
+FROM scratch
+
+COPY --from=build /app/bloat /bloat
+COPY templates /templates
+COPY static /static
+
+EXPOSE 8080
+
+CMD ["/bloat"]