File size: 376 Bytes
fe93e39
d06e600
55ed250
fe93e39
216e98d
55ed250
d06e600
2a37db0
fe93e39
2a37db0
d06e600
fe93e39
2a37db0
c744b81
d06e600
55ed250
c744b81
 
 
887dc4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"