Something went wrong on our end
-
Hugo SUBTIL authoredHugo SUBTIL authored
Dockerfile 284 B
# Stage 0, based on Node.js
FROM node:12.16-slim
WORKDIR /app
# Copy the package.json file first in order to cache the modules
COPY . .
RUN mkdir api
RUN cp routes.json ./api
# Install npm dependencies
RUN npm install
# expose port 3000
EXPOSE 80 3000
CMD ["npm", "run", "api"]