arnweb-api/Dockerfile

18 lines
289 B
Docker
Raw Normal View History

2024-02-08 11:56:05 +01:00
FROM node:18-alpine as base
WORKDIR /src
COPY package*.json /
EXPOSE 2428
FROM base as production
ENV NODE_ENV=production
RUN npm ci
COPY . /
CMD ["node", "bin/www"]
FROM base as dev
ENV NODE_ENV=development
RUN npm install -g nodemon && npm install
COPY . /
CMD ["nodemon", "bin/www"]