reduces size from about 1.08GB to 345MB (still not great but hey)pull/32/head^2
parent
66d991bd05
commit
b15b44e290
@ -1,10 +1,10 @@
|
||||
FROM node:14
|
||||
|
||||
FROM node:16.4.2-alpine3.14
|
||||
#
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
RUN yarn
|
||||
RUN yarn build
|
||||
#
|
||||
EXPOSE 3001
|
||||
VOLUME ["/app/data"]
|
||||
CMD ["npm", "run", "start-server"]
|
||||
|
Loading…
Reference in new issue