Files
code-review/Dockerfile
T

17 lines
348 B
Docker

FROM node:20-slim
# force rebuild to ensure git is installed
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /action
COPY app/ /action/app/
COPY entrypoint.sh /entrypoint.sh
RUN cd /action/app && npm install && \
chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]