Skip to content

Commit

Permalink
adding dockerfile for production
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Dec 12, 2023
1 parent 4fafd72 commit a68e01d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ services:
- CHOKIDAR_USEPOLLING=true
ports:
- 3000:3000
stdin_open: true
volumes:
- ./frontend/:/frontend/
- /frontend/node_modules
stdin_open: true
5 changes: 2 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
FROM node:19.0-alpine

# set working directory
WORKDIR /frontend
WORKDIR .

# add _/usr/src/app/node_modules/.bin_ to $PATH
ENV PATH /frontend/node_modules/.bin:$PATH

# install app dependencies
COPY package.json .
COPY yarn.lock .
COPY . .

RUN yarn install --production

Expand Down

0 comments on commit a68e01d

Please sign in to comment.