awesome-compose/react-express-mongodb/backend/Dockerfile

15 lines
244 B
Docker
Raw Normal View History

FROM node:lts-buster-slim
# Create app directory
WORKDIR /usr/src/app
COPY package.json /usr/src/app/package.json
COPY package-lock.json /usr/src/app/package-lock.json
RUN npm ci
COPY . /usr/src/app
EXPOSE 3000
CMD [ "npm", "run", "dev" ]