Server workflow is only git pull and docker compose up --build; env still comes from .env. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
411 B
Docker
14 lines
411 B
Docker
# باندل از گیت میآید؛ داخل ایمیج باز میشود — روی سرور tar لازم نیست
|
|
FROM node:22-alpine
|
|
WORKDIR /app
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
COPY deploy-bundle.tar.gz /tmp/deploy-bundle.tar.gz
|
|
RUN tar -xzf /tmp/deploy-bundle.tar.gz -C /app \
|
|
&& rm /tmp/deploy-bundle.tar.gz \
|
|
&& chmod +x /app/docker-entrypoint.sh
|
|
|
|
EXPOSE 3000
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|