Skip to content

Commit

Permalink
Use restart shim in the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
codemicro committed Jun 13, 2024
1 parent f84a9fd commit 06a0142
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ WORKDIR /build
RUN CGO_ENABLED=1 GOOS=linux go build -a -buildvcs=false -installsuffix cgo -ldflags "-extldflags '-static'" -o main github.com/CSSUoB/society-voting

FROM alpine

# the below is needed for the shim script
RUN apk add --no-cache bash

COPY --from=builder /build/main /
COPY --from=builder /build/deploy/prod-shim.sh /
WORKDIR /run

CMD ["../main"]
CMD ["../prod-shim.sh", "../main"]

0 comments on commit 06a0142

Please sign in to comment.