Reordered commands in Dockerfile for caching usage

This commit is contained in:
Dmitriy Shishkov 2025-02-03 02:52:04 +03:00
parent 84aa11f7c0
commit 0bcee6162b
Signed by: dm1sh
GPG Key ID: 027994B0AA357688

View File

@ -4,7 +4,9 @@ RUN apk add --no-cache build-base
WORKDIR /app
COPY . .
COPY Makefile .
COPY src src/
COPY include include/
RUN make
@ -12,8 +14,8 @@ FROM alpine
WORKDIR /srv
COPY --from=builder /app .
COPY static static/
RUN apk add --no-cache gcompat
COPY --from=builder /app/build/server .
CMD ["build/server", "5000"]
CMD ["./server", "5000"]