This repository has been archived on 2024-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
reactive-resume-docker/Dockerfile

27 lines
591 B
Docker
Raw Normal View History

2023-01-04 14:08:00 +01:00
FROM node:lts-bullseye-slim
ARG VERSION
2023-04-10 18:21:08 +02:00
RUN apt-get update
RUN apt-get install -y git
2023-01-04 14:08:00 +01:00
RUN npm install -g pnpm pm2
2023-04-10 18:21:08 +02:00
RUN git clone --depth 1 --branch ${VERSION} https://github.com/AmruthPillai/Reactive-Resume.git /app
2023-01-04 14:08:00 +01:00
WORKDIR /app
2023-04-10 18:21:08 +02:00
ENV NEXT_TELEMETRY_DISABLED=1
2023-01-04 14:08:00 +01:00
RUN pnpm install --frozen-lockfile
RUN pnpm build
2023-04-15 12:47:26 +02:00
RUN npx playwright install-deps
2023-01-04 14:08:00 +01:00
2023-04-10 18:21:08 +02:00
COPY .env /data/.env.template
COPY entrypoint.sh /data/entrypoint.sh
COPY ecosystem.config.js /data/ecosystem.config.js
2023-01-04 14:08:00 +01:00
2023-04-10 18:21:08 +02:00
RUN chmod a+x /data/entrypoint.sh
2023-01-04 14:08:00 +01:00
2023-04-10 18:21:08 +02:00
ENTRYPOINT [ "/data/entrypoint.sh" ]
CMD [ "pm2-runtime", "/data/ecosystem.config.js" ]