Skip to content

Commit

Permalink
Add startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOaks committed Jan 26, 2024
1 parent 0a6594c commit a459245
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ RUN yarn

# copy other files
COPY tsconfig.json src .
COPY docker/startup.sh .
COPY public ./public

EXPOSE 3300
RUN yarn build
RUN yarn migrate up
CMD [ "yarn", "start"]
CMD [ "./startup.sh" ]
3 changes: 3 additions & 0 deletions docker/startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
yarn migrate up
yarn start

0 comments on commit a459245

Please sign in to comment.