mirror of
https://github.com/zebrajr/nginx-docker-cdn.git
synced 2025-12-06 00:19:49 +01:00
10 lines
294 B
Docker
10 lines
294 B
Docker
FROM nginx:alpine
|
|
COPY ./src/html /usr/share/nginx/html
|
|
COPY ./src/nginx/default.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Set permissions for the images directory
|
|
RUN mkdir -p /usr/share/nginx/html/images && chmod -R 755 /usr/share/nginx/html/images
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|