| FROM pengzhile/new-api as neoapi |
| FROM nginx:alpine |
|
|
| EXPOSE 7860 |
|
|
| |
| RUN mkdir -p /data/logs && \ |
| mkdir -p /logs && \ |
| chmod -R 777 /data && \ |
| chmod -R 777 /logs |
|
|
| |
| RUN 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 --from=neoapi /neo-api /neo-api |
| COPY --from=neoapi /data /data |
|
|
| |
| COPY nginx.conf /etc/nginx/nginx.conf |
| COPY start.sh /start.sh |
| RUN chmod +x /start.sh && \ |
| chmod +x /neo-api/server |
|
|
| CMD ["/start.sh"] |