Skip to content

Commit

Permalink
chore: fix Dockerfile and eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-nguyen-cs committed Feb 9, 2024
1 parent 33bd303 commit d4ab69e
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 566 deletions.
3 changes: 2 additions & 1 deletion docker/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ services:
- ./taxonomy-editor-frontend/build:/opt/taxonomy-editor/build
- ./taxonomy-editor-frontend/public:/opt/taxonomy-editor/public
- ./taxonomy-editor-frontend/src:/opt/taxonomy-editor/src
- ./taxonomy-editor-frontend/tsconfig.js:/opt/taxonomy-editor/tsconfig.js
- ./taxonomy-editor-frontend/.eslintrc.json:/opt/taxonomy-editor/.eslintrc.json
- ./taxonomy-editor-frontend/craco.config.js:/opt/taxonomy-editor/craco.config.js
- ./taxonomy-editor-frontend/tsconfig.js:/opt/taxonomy-editor/tsconfig.js
taxonomy_frontend:
image: taxonomy-editor/taxonomy_frontend:dev
# instruction to build locally
Expand Down
3 changes: 2 additions & 1 deletion taxonomy-editor-frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ ENV PATH /opt/taxonomy-editor/node_modules/.bin:$PATH
# copy files
COPY --chown=node:node src /opt/taxonomy-editor/src
COPY --chown=node:node public /opt/taxonomy-editor/public
COPY --chown=node:node tsconfig.json /opt/taxonomy-editor/tsconfig.json
COPY --chown=node:node .eslintrc.json /opt/taxonomy-editor/.eslintrc.json
COPY --chown=node:node craco.config.js /opt/taxonomy-editor/craco.config.js
COPY --chown=node:node tsconfig.json /opt/taxonomy-editor/tsconfig.json
# build for production
# no need of a public url, we are at the root
RUN npm run build
Expand Down
Loading

0 comments on commit d4ab69e

Please sign in to comment.