23 lines
473 B
Docker
23 lines
473 B
Docker
FROM node:lts-bullseye-slim
|
|
|
|
ARG VERSION
|
|
|
|
RUN apt update
|
|
RUN apt install -y git
|
|
|
|
RUN git clone --depth 1 --branch ${VERSION} https://github.com/AmruthPillai/Reactive-Resume.git app
|
|
|
|
RUN npm install -g pnpm pm2
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
RUN pnpm build
|
|
|
|
COPY . .
|
|
|
|
RUN cp .env /tmp/.env
|
|
RUN mv entrypoint.sh /usr/bin/entrypoint.sh && chmod a+x /usr/bin/entrypoint.sh
|
|
|
|
ENTRYPOINT [ "/usr/bin/entrypoint.sh" ]
|
|
CMD [ "pm2-runtime", "ecosystem.config.js" ] |