| # debian.sh --arch 'amd64' out/ 'bullseye' '@1747699200' |
| LABEL stage=final-image |
| WORKDIR /app |
| RUN /bin/sh -c apt-get update && apt-get install -y nginx supervisor ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY nginx.conf /etc/nginx/nginx.conf # buildkit |
| RUN /bin/sh -c rm -f /etc/nginx/sites-enabled/default # buildkit |
| COPY /app-vue/dist /var/www/html/ # buildkit |
| COPY /app-go/v2fmdash-server . # buildkit |
| COPY /app-go/public ./public/ # buildkit |
| COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf # buildkit |
| RUN /bin/sh -c mkdir -p /var/log/supervisor # buildkit |
| EXPOSE map[8080/tcp:{}] |
| ENV PORT_GO_API=8091 |
| ENV PORT_NGINX=8080 |
| CMD ["/usr/bin/supervisord" "-c" "/etc/supervisor/conf.d/supervisord.conf"] |