diff --git a/_deploy/new-lite/Dockerfile b/_deploy/new-lite/Dockerfile new file mode 100644 index 0000000..811d9b1 --- /dev/null +++ b/_deploy/new-lite/Dockerfile @@ -0,0 +1,19 @@ +FROM node:current-alpine + +# Install git and curl +RUN apk add --no-cache git curl + +# Set environment variables for repo and branch +# These will be overridden by docker-compose.yml +ENV REPO="" +ENV BRANCH="" + +# Create a directory for the app +WORKDIR /app + +# Download the entrypoint script +CMD git clone --depth 1 --branch $BRANCH $REPO /tmp/repo && \ + cp /tmp/repo/_deploy/entrypoint.sh /app/entrypoint.sh && \ + chmod +x /app/entrypoint.sh && \ + rm -rf /tmp/repo && \ + /app/entrypoint.sh \ No newline at end of file