2024-06-05 06:08:19 +00:00
|
|
|
FROM oven/bun:latest
|
|
|
|
|
|
|
|
WORKDIR /app
|
2024-04-08 12:09:15 +00:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y nginx
|
|
|
|
|
2024-06-05 06:08:19 +00:00
|
|
|
RUN bun install cheerio pino axios pino-pretty
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2024-04-08 12:09:15 +00:00
|
|
|
RUN addgroup --system nginx && \
|
|
|
|
adduser --system --no-create-home --disabled-login --ingroup nginx nginx
|
|
|
|
|
|
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
COPY dist/ /usr/share/nginx/html/
|
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
|
|
|
|
COPY nginx-signed.crt /etc/ssl/certs/nginx-signed.crt
|
|
|
|
COPY nginx-signed.key /etc/ssl/private/nginx-signed.key
|
|
|
|
|
|
|
|
RUN chown -R nginx:nginx /etc/ssl/certs/nginx-signed.crt /etc/ssl/private/nginx-signed.key
|
|
|
|
|
2024-06-05 06:08:19 +00:00
|
|
|
COPY start.sh /app/start.sh
|
|
|
|
|
|
|
|
RUN chmod +x /app/start.sh
|
|
|
|
|
|
|
|
|
2024-04-08 12:09:15 +00:00
|
|
|
EXPOSE 80 443
|
|
|
|
|
2024-06-05 06:08:19 +00:00
|
|
|
CMD ["/app/start.sh"]
|