1
mirror of https://github.com/jakejarvis/npqueue.git synced 2025-11-04 10:20:10 -05:00

deploy to heroku with docker and github action

This commit is contained in:
2019-09-11 11:54:11 -04:00
parent 4fbcdbe2a6
commit 016242bcf3
5 changed files with 232 additions and 212 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM golang:1.13 AS builder
WORKDIR /src
COPY . /src
RUN CGO_ENABLED=0 GOOS=linux go build -o npqueue .
# ---
FROM heroku/heroku:18
WORKDIR /app
COPY --from=builder /src /app
ENV GIN_MODE=release
CMD ["./npqueue"]