na / Dockerfile
rclon's picture
Upload 3 files
97d0952 verified
raw
history blame
486 Bytes
FROM pengzhile/new-api AS builder
FROM nginx:alpine
COPY --from=builder /one-api /one-api
WORKDIR /data
RUN chmod +x /one-api && \
mkdir -p /data && chmod 777 /data && \
mkdir -p logs && chmod 777 logs && \
chmod 777 /var/cache/nginx && \
mkdir -p /var/log/nginx && chmod 777 /var/log/nginx && \
chmod 777 /var/run/nginx.pid
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 7860
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/start.sh"]