Files
cosmoserver/files/docker/Dockerfile-1
2026-03-30 19:59:39 -07:00

49 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM php:8.0-apache
RUN set -eux; \
apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
gnupg \
lsb-release \
wget \
curl \
sudo \
redis-server \
nginx \
supervisor \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Node application
COPY web/node_server/ .
RUN npm install --only=production
#RUN npm ci --production
# PHP static files (public web root)
COPY web/html/ /var/www/html/
# NGINX config (overwrites the default)
COPY web/proxy/nginx.conf /etc/nginx/conf.d/default.conf
# Shared settings file (readonly)
COPY cosmostat_settings.yaml /app/cosmostat_settings.yaml
# Supervisor configuration
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Entrypoint script
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
EXPOSE 6379
EXPOSE 80
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]