jaecoo-cihampelas/Dockerfile

25 lines
377 B
Docker
Raw Normal View History

2025-07-13 08:31:19 +00:00
FROM node:21-alpine
ENV PORT 4000
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Installing dependencies
COPY package*.json /usr/src/app/
# RUN npm install --force
2025-07-13 08:36:30 +00:00
RUN npm install --legacy-peer-deps
2025-07-13 08:31:19 +00:00
RUN npm install
# Copying source files
COPY . /usr/src/app
# Building app
RUN npm run build
EXPOSE 4000
# Running the app
CMD "npm" "run" "start"