Skip to content

Commit

Permalink
Merge pull request #47 from fga-eps-mds/fix-deploy-prod
Browse files Browse the repository at this point in the history
deploy
  • Loading branch information
JoaoVitorFarias authored Jul 14, 2023
2 parents cdb772d + 0551494 commit a539e5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FROM node:lts
FROM node:lts-alpine

WORKDIR /app

COPY . /app
COPY ./package.json /app/

COPY ./yarn.lock /app/

RUN yarn

COPY . /app

EXPOSE 4002

CMD ["yarn", "dev"]
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'

services:
db:
image: 'postgres'
image: 'postgres:alpine'
env_file:
- db.env
volumes:
Expand All @@ -23,7 +23,7 @@ services:
- alectrion-network
ports:
- 4002:4002
command: bash -c "yarn && yarn migration:run && yarn dev"
command: sh -c "yarn && yarn migration:run && yarn dev"

networks:
alectrion-equipment-network:
Expand Down

0 comments on commit a539e5c

Please sign in to comment.