14 lines
234 B
Docker
14 lines
234 B
Docker
FROM 'node:20'
|
|
|
|
RUN mkdir -p /usr/src/app/dist
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json /usr/src/app/
|
|
COPY package-lock.json /usr/src/app/
|
|
COPY dist /usr/src/app/dist
|
|
|
|
RUN npm ci --omit=dev
|
|
EXPOSE 3003
|
|
|
|
CMD [ "npm", "run", "up:prod" ]
|