diff options
| author | jackyzha0 <[email protected]> | 2020-05-09 15:15:34 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-09 15:15:34 -0700 |
| commit | 516a08a17ee9150220abeec0d5dff72099fd2dcd (patch) | |
| tree | f4aa44cd25417297380431159622ebf379070259 /Dockerfile | |
| parent | add dockerfile and makefile (diff) | |
| download | ctrl-v-516a08a17ee9150220abeec0d5dff72099fd2dcd.tar.xz ctrl-v-516a08a17ee9150220abeec0d5dff72099fd2dcd.zip | |
fix dockerfile envs
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,7 +7,6 @@ COPY . /app/src WORKDIR /app/src RUN apk add git ca-certificates -RUN go mod download # Build image RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/app @@ -16,10 +15,11 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/app FROM scratch # Copy app -COPY --from=builder /go/bin/app /go/bin/app +COPY --from=builder /go/bin/app ./ +COPY .env ./ # Expose ports, change port to whatever you need to expose EXPOSE 8080 # Run app -ENTRYPOINT ["/go/bin/app"]
\ No newline at end of file +ENTRYPOINT ["./app"]
\ No newline at end of file |