Files
otus-kotlin-developer/deploy/Dockerfile
Александр Веденёв f0446dee20 module 3 lesson 1
2025-02-05 13:23:17 +07:00

20 lines
473 B
Docker
Raw Permalink 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.

# Pull the minimal Ubuntu image
FROM ubuntu:22.04
# Install Nginx
RUN apt-get -y update && apt-get -y install nginx
#RUN useradd -ms /bin/bash mynginx
# Copy the Nginx config
COPY ./volumes/nginx/default.conf /etc/nginx/conf.d/
COPY ./volumes/nginx/nginx.conf /etc/nginx/
# Expose the port for access
EXPOSE 8080/tcp
# Не работает: nginx требует права root
#USER mynginx
# Run the Nginx server
ENTRYPOINT ["/usr/sbin/nginx", "-g", "daemon off;"]