We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b50fc4 + e9dab71 commit 030b7b8Copy full SHA for 030b7b8
server/Dockerfile
@@ -43,8 +43,9 @@ RUN apt-get update && apt-get install -y \
43
&& rm -rf /var/lib/apt/lists/* \
44
&& mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
45
46
-# Expose the backend port
+# Expose backend port
47
EXPOSE ${BACKEND_PORT:-8080}
48
49
-# Start the backend using the start script
50
-CMD ["npm", "run", "server"]
+# Run migrations & start backend using start script
+#CMD ["npm", "run", "server"]
51
+CMD ["sh", "-c", "npm run migrate && npm run server"]
0 commit comments