Skip to content
Snippets Groups Projects
Commit c0f25b1a authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

feat: update back deploy

parent e0ebab26
No related branches found
No related tags found
2 merge requests!14Recette,!13Dev
# Stage 0, based on Node.js
FROM node:12.16-slim
# Based on Node.js
FROM node:12.16
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
EXPOSE 3000
CMD ["npm", "run", "api"]
CMD ["npm", "start"]
{
"name": "pamn-mock-api",
"version": "0.0.1",
"version": "0.1.0",
"scripts": {
"api": "json-server api/db.json --routes api/routes.json --no-cors=true"
"start": "node server.js"
},
"private": true,
"dependencies": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment