mirror of
https://github.com/Damillora/Rinze.git
synced 2024-11-22 03:37:33 +00:00
25 lines
336 B
Docker
25 lines
336 B
Docker
FROM node:14
|
|
|
|
# install dependencies
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN yarn install
|
|
|
|
# Copy all local files into the image.
|
|
COPY . .
|
|
|
|
RUN yarn build
|
|
|
|
###
|
|
# Only copy over the Node pieces we need
|
|
# ~> Saves 35MB
|
|
###
|
|
FROM node:14-slim
|
|
|
|
WORKDIR /app
|
|
COPY --from=0 /app .
|
|
COPY . .
|
|
|
|
EXPOSE 3000
|
|
CMD ["node", "./build"]
|