Merge pull request #618 from getmaxun/migration
feat: run migrations before start script
This commit is contained in:
@@ -43,8 +43,9 @@ RUN apt-get update && apt-get install -y \
|
|||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
|
&& mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix
|
||||||
|
|
||||||
# Expose the backend port
|
# Expose backend port
|
||||||
EXPOSE ${BACKEND_PORT:-8080}
|
EXPOSE ${BACKEND_PORT:-8080}
|
||||||
|
|
||||||
# Start the backend using the start script
|
# Run migrations & start backend using start script
|
||||||
CMD ["npm", "run", "server"]
|
#CMD ["npm", "run", "server"]
|
||||||
|
CMD ["sh", "-c", "npm run migrate && npm run server"]
|
||||||
Reference in New Issue
Block a user