web-humas-fe/Dockerfile

25 lines
372 B
Docker
Raw Normal View History

2024-03-28 02:25:28 +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
RUN npm install -g npm@latest
2024-03-28 04:01:47 +00:00
RUN npm install
2024-03-28 02:25:28 +00:00
# Copying source files
COPY . /usr/src/app
# Building app
RUN npm run build
EXPOSE 4000
# Running the app
CMD "npm" "run" "start"