feat: revert docker changes
This commit is contained in:
@@ -48,7 +48,6 @@ services:
|
|||||||
- "${BACKEND_PORT:-8080}:${BACKEND_PORT:-8080}"
|
- "${BACKEND_PORT:-8080}:${BACKEND_PORT:-8080}"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
DB_HOST: ${DB_HOST}
|
|
||||||
BACKEND_URL: ${BACKEND_URL}
|
BACKEND_URL: ${BACKEND_URL}
|
||||||
# to ensure Playwright works in Docker
|
# to ensure Playwright works in Docker
|
||||||
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
|
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ COPY public ./public
|
|||||||
COPY server ./server
|
COPY server ./server
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY server/tsconfig.json ./server/
|
COPY server/tsconfig.json ./server/
|
||||||
COPY .sequelizerc ./
|
|
||||||
# COPY server/start.sh ./
|
# COPY server/start.sh ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
@@ -42,18 +41,11 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libxext6 \
|
libxext6 \
|
||||||
libxi6 \
|
libxi6 \
|
||||||
libxtst6 \
|
libxtst6 \
|
||||||
postgresql-client \
|
|
||||||
netcat-openbsd \
|
|
||||||
&& 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
|
||||||
|
|
||||||
COPY server/docker-entrypoint.sh /app/
|
|
||||||
RUN chmod +x /app/docker-entrypoint.sh
|
|
||||||
|
|
||||||
# Expose the backend port
|
# Expose the backend port
|
||||||
EXPOSE ${BACKEND_PORT:-8080}
|
EXPOSE ${BACKEND_PORT:-8080}
|
||||||
|
|
||||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
|
||||||
|
|
||||||
# Start the backend using the start script
|
# Start the backend using the start script
|
||||||
CMD ["npm", "run", "server"]
|
CMD ["npm", "run", "server"]
|
||||||
|
|||||||
Reference in New Issue
Block a user