Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Client
Commits
c0f25b1a
Commit
c0f25b1a
authored
4 years ago
by
Hugo SUBTIL
Browse files
Options
Downloads
Patches
Plain Diff
feat: update back deploy
parent
e0ebab26
No related branches found
No related tags found
2 merge requests
!14
Recette
,
!13
Dev
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/Dockerfile
+4
-7
4 additions, 7 deletions
api/Dockerfile
api/package.json
+2
-2
2 additions, 2 deletions
api/package.json
with
6 additions
and
9 deletions
api/Dockerfile
+
4
−
7
View file @
c0f25b1a
#
Stage 0, b
ased on Node.js
FROM
node:12.16
-slim
#
B
ased 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
"]
This diff is collapsed.
Click to expand it.
api/package.json
+
2
−
2
View file @
c0f25b1a
{
"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"
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment