Skip to content
Snippets Groups Projects
Commit c172ecb3 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Add dockerfile

parent a457811c
No related branches found
No related tags found
2 merge requests!7feat: add front office,!3Feat/dockerize
node_modules
build
.dockerignore
\ No newline at end of file
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"]
...@@ -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}\"",
......
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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment