mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 16:17:29 +00:00
Merge pull request #90 from tympom/patch-1
Multistage build for smaller image
This commit is contained in:
commit
865e3b0778
@ -1,7 +1,11 @@
|
|||||||
FROM node:12.18.1-alpine
|
FROM node:12.18.1-alpine as build
|
||||||
RUN apk --no-cache add git python3 make g++
|
RUN apk --no-cache add git python3 make g++
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm install --no-optional
|
RUN npm install --no-optional
|
||||||
|
|
||||||
|
FROM node:12.18.1-alpine as app
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app /app
|
||||||
EXPOSE 10407
|
EXPOSE 10407
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
Loading…
Reference in New Issue
Block a user