mirror of
https://github.com/jakejarvis/npqueue.git
synced 2026-07-26 11:56:03 -04:00
deploy to heroku with docker and github action
This commit is contained in:
+17
@@ -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"]
|
||||
Reference in New Issue
Block a user