aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-09 20:15:59 -0700
committerjackyzha0 <[email protected]>2020-05-09 20:15:59 -0700
commitdedabf41a18820527aed9e77b75564e69c9030ce (patch)
tree9258832576f9c1bcad6126cf76ef8f7f6a128e82 /Dockerfile
parentMerge pull request #3 from jackyzha0/doc-expiry (diff)
downloadctrl-v-dedabf41a18820527aed9e77b75564e69c9030ce.tar.xz
ctrl-v-dedabf41a18820527aed9e77b75564e69c9030ce.zip
folder refactor
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile26
1 files changed, 0 insertions, 26 deletions
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index b533070..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,26 +0,0 @@
-## Build stage
-FROM golang:alpine AS builder
-ENV GO111MODULE=on
-
-# Copy files to image
-COPY . /app/src
-WORKDIR /app/src
-
-RUN apk add git ca-certificates
-
-# Build image
-RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/app
-
-## Image creation stage
-FROM scratch
-
-# Copy app
-COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
-COPY --from=builder /go/bin/app ./
-COPY .env ./
-
-# Expose ports, change port to whatever you need to expose
-EXPOSE 8080
-
-# Run app
-ENTRYPOINT ["./app"] \ No newline at end of file