Skip to content

Commit 030b7b8

Browse files
authored
Merge pull request #618 from getmaxun/migration
feat: run migrations before start script
2 parents 8b50fc4 + e9dab71 commit 030b7b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

server/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ RUN apt-get update && apt-get install -y \
4343
&& rm -rf /var/lib/apt/lists/* \
4444
&& mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
4545

46-
# Expose the backend port
46+
# Expose backend port
4747
EXPOSE ${BACKEND_PORT:-8080}
4848

49-
# Start the backend using the start script
50-
CMD ["npm", "run", "server"]
49+
# Run migrations & start backend using start script
50+
#CMD ["npm", "run", "server"]
51+
CMD ["sh", "-c", "npm run migrate && npm run server"]

0 commit comments

Comments
 (0)