Reordered commands in Dockerfile for caching usage

This commit is contained in:
2025-02-03 02:52:04 +03:00
parent 84aa11f7c0
commit 0bcee6162b

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"]