Updated Dockerfile

This commit is contained in:
Dmitriy Shishkov 2022-03-20 17:25:55 +03:00
parent e7f9ff61f1
commit 6594c9dd81
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060

View File

@ -1,4 +1,6 @@
FROM heroku/heroku:20-build as builder
FROM alpine as builder
RUN apk add --no-cache build-base
WORKDIR /app
@ -6,12 +8,12 @@ COPY . .
RUN make
FROM heroku/heroku:20
FROM alpine
WORKDIR /srv
COPY --from=builder /app .
RUN echo 5000
RUN apk add --no-cache gcompat
CMD ["./build/server", "5000"]
CMD ["build/server", "5000"]