Sendbox / Dockerfile
RaBU1234's picture
Update Dockerfile
55ed250 verified
raw
history blame contribute delete
376 Bytes
FROM node:18-alpine
# Simple, minimal dependencies
RUN apk add --no-cache \
python3 py3-pip git curl bash coreutils nginx \
pnpm
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
COPY nginx.conf /etc/nginx/http.d/default.conf
RUN mkdir -p /var/log/nginx /var/lib/nginx/tmp /tmp/sandboxes
EXPOSE 7860
CMD sh -c "nginx -g 'daemon off;' & node server.js"