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
3fdba6b0
Commit
3fdba6b0
authored
4 years ago
by
benoit-cty
Browse files
Options
Downloads
Patches
Plain Diff
Fix "invalid character error" in container
parent
9117a0fd
Branches
Branches containing commit
No related tags found
1 merge request
!128
Docker : fix the error showing up in client
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+1
-0
1 addition, 0 deletions
.dockerignore
docker-compose.yml
+2
-0
2 additions, 0 deletions
docker-compose.yml
docker/Dockerfile
+11
-10
11 additions, 10 deletions
docker/Dockerfile
with
14 additions
and
10 deletions
.dockerignore
+
1
−
0
View file @
3fdba6b0
...
...
@@ -88,6 +88,7 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
build/
# TypeScript v1 declaration files
typings/
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
2
−
0
View file @
3fdba6b0
...
...
@@ -11,6 +11,8 @@ services:
-
9080:9001
volumes
:
-
.:/opt/leximpact-client
-
/opt/leximpact-client/node_modules
-
/opt/leximpact-client/build
networks
:
leximpact_net
:
...
...
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
11
−
10
View file @
3fdba6b0
FROM
node:12-alpine
RUN
apk update
&&
apk upgrade
&&
\
apk add
--no-cache
bash git openssh
FROM
node:12
WORKDIR
/opt
RUN
git clone https://github.com/leximpact/leximpact-client.git
WORKDIR
/opt/leximpact-client
COPY
package.json .
RUN
echo
"API_URL=https://api.leximpact.an.fr/"
>
.env
# Clean just to be sure
RUN
rm
-rf
node_modules build
# Install dependencies
RUN
npm update
RUN
npm
install
# Copy everything
COPY
. .
RUN
npm
install
--save-dev
jest-cli
RUN
npm run
test
RUN
npm run code:check
RUN
npm run build
EXPOSE
9001
CMD
["npm", "run", "dev"]
\ No newline at end of file
#ENTRYPOINT ["watch", "-n", "60", "echo 'Client is in debug...'"]
\ 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