File size: 506 Bytes
dad140a c5fc148 4402ad3 c5fc148 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM calciumion/new-api:latest 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 && \
touch /var/run/nginx.pid && 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"]
|