Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
backoffice_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
LLLE_Project
backoffice_client
Commits
c172ecb3
Commit
c172ecb3
authored
3 years ago
by
Guilhem CARRON
Browse files
Options
Downloads
Patches
Plain Diff
Add dockerfile
parent
a457811c
No related branches found
No related tags found
2 merge requests
!7
feat: add front office
,
!3
Feat/dockerize
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.dockerignore
+3
-0
3 additions, 0 deletions
.dockerignore
Dockerfile
+17
-0
17 additions, 0 deletions
Dockerfile
package.json
+1
-0
1 addition, 0 deletions
package.json
src/components/Editing/Editing.tsx
+0
-1
0 additions, 1 deletion
src/components/Editing/Editing.tsx
with
21 additions
and
1 deletion
.dockerignore
0 → 100644
+
3
−
0
View file @
c172ecb3
node_modules
build
.dockerignore
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
17
−
0
View file @
c172ecb3
FROM
node:14-alpine
WORKDIR
/app
ENV
PATH /app/node_modules/.bin:$PATH
COPY
package.json ./
RUN
yarn
# add app
COPY
. ./
# start app
CMD
["yarn", "start"]
This diff is collapsed.
Click to expand it.
package.json
+
1
−
0
View file @
c172ecb3
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
"scripts"
:
{
"scripts"
:
{
"start"
:
"react-scripts start"
,
"start"
:
"react-scripts start"
,
"build"
:
"react-scripts build"
,
"build"
:
"react-scripts build"
,
"docker"
:
"docker run -it --rm -p 3000:3000 front-backoffice"
,
"lint"
:
"eslint ."
,
"lint"
:
"eslint ."
,
"lint:fix"
:
"eslint --fix ."
,
"lint:fix"
:
"eslint --fix ."
,
"format"
:
"prettier --write
\"
**/*.{js,jsx,json,md}
\"
"
,
"format"
:
"prettier --write
\"
**/*.{js,jsx,json,md}
\"
"
,
...
...
This diff is collapsed.
Click to expand it.
src/components/Editing/Editing.tsx
+
0
−
1
View file @
c172ecb3
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
React
,
{
useCallback
,
useState
}
from
'
react
'
import
'
react-datepicker/dist/react-datepicker.css
'
import
{
Editor
}
from
'
@tinymce/tinymce-react
'
import
{
Editor
}
from
'
@tinymce/tinymce-react
'
import
DateSelector
from
'
../DateSelector/DateSelector
'
import
DateSelector
from
'
../DateSelector/DateSelector
'
import
'
./editing.scss
'
import
'
./editing.scss
'
...
...
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