Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
leximpact-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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur dotations aux communes
leximpact-client
Commits
a9b4d138
Commit
a9b4d138
authored
4 years ago
by
Benoît Courty
Browse files
Options
Downloads
Patches
Plain Diff
WIP : Dockerization
parent
39877c99
No related branches found
No related tags found
1 merge request
!126
Dockerization
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.dev
+3
-0
3 additions, 0 deletions
.env.dev
Dockerfile
+13
-0
13 additions, 0 deletions
Dockerfile
docker-compose.yml
+14
-0
14 additions, 0 deletions
docker-compose.yml
with
30 additions
and
0 deletions
.env.dev
0 → 100644
+
3
−
0
View file @
a9b4d138
PORT=9001
NODE_ENV=development
API_URL=https://api.leximpact.an.fr/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
13
−
0
View file @
a9b4d138
FROM
node:12-alpine
WORKDIR
/opt
# TODO : use a multistage build
RUN
apk update
&&
apk upgrade
&&
\
apk add
--no-cache
bash git openssh
RUN
git clone https://github.com/leximpact/leximpact-client.git
WORKDIR
/opt/leximpact-client
COPY
.env.dev .env
RUN
npm update
RUN
npm
install
EXPOSE
9001
CMD
["npm", "run", "dev"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
14
−
0
View file @
a9b4d138
version
:
'
3.7'
services
:
leximpact_client
:
build
:
.
networks
:
-
leximpact_net
ports
:
-
published
:
9001
target
:
9001
networks
:
leximpact_net
:
name
:
leximpact_network
\ No newline at end of file
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