Reordered commands in Dockerfile for caching usage
This commit is contained in:
parent
84aa11f7c0
commit
0bcee6162b
10
Dockerfile
10
Dockerfile
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user