AppFlowy/frontend/appflowy_web_app/Dockerfile

32 lines
588 B
Docker
Raw Normal View History

FROM oven/bun:latest
WORKDIR /app
RUN apt-get update && \
2024-06-30 07:45:01 +00:00
apt-get install -y nginx supervisor
2024-06-26 07:23:23 +00:00
RUN bun install cheerio pino pino-pretty
COPY . .
2024-06-30 07:45:01 +00:00
COPY supervisord.conf /app/supervisord.conf
2024-06-28 16:42:32 +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/
2024-06-28 16:42:32 +00:00
COPY nginx.conf /etc/nginx/nginx.conf
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
2024-06-30 07:45:01 +00:00
RUN chmod +x /app/supervisord.conf
2024-06-28 17:32:22 +00:00
EXPOSE 80
2024-06-30 07:45:01 +00:00
CMD ["supervisord", "-c", "/app/supervisord.conf"]