2023-02-12 08:35:16 -08:00
|
|
|
# Install Nginx with FastCGI enabled, optimizing its performance for serving content
|
2023-02-12 06:13:58 -08:00
|
|
|
RUN apk add nginx
|
|
|
|
|
2023-02-27 11:35:06 -08:00
|
|
|
# Forward request and error logs to docker log collector
|
2023-03-07 13:33:19 -08:00
|
|
|
# RUN ln -sf /dev/stdout /var/log/nginx/access.log &&\
|
|
|
|
# ln -sf /dev/stderr /var/log/nginx/error.log
|
2023-02-27 11:35:06 -08:00
|
|
|
|
2023-02-12 08:35:16 -08:00
|
|
|
# After executing the 'docker run' command, run the 'prepare.sh' script
|
2023-02-12 07:50:41 -08:00
|
|
|
CMD [ "/bin/sh", "-c", "docker/server/prepare.sh" ]
|