Dockerfile me saoule
This commit is contained in:
parent
b93a8e9e4b
commit
f8c7ac01b4
17
Dockerfile
17
Dockerfile
@ -2,17 +2,18 @@ FROM nginx:1.21.6-alpine
|
||||
|
||||
LABEL maintainer="greg.lebreton@hotmail.com"
|
||||
|
||||
COPY --chown=nginx:nginx --chmod=755 ./html /usr/share/nginx/html
|
||||
RUN apk add --no-cache bash && \
|
||||
rm -rf /var/cache/apk/* && \
|
||||
chmod -R 755 /usr/share/nginx/html && \
|
||||
mkdir -p /var/cache/nginx && \
|
||||
chown -R nginx:nginx /var/cache/nginx && \
|
||||
chmod -R 755 /var/cache/nginx
|
||||
COPY ./html /usr/share/nginx/html
|
||||
# COPY --chown=nginx:nginx --chmod=755 ./html /usr/share/nginx/html
|
||||
# RUN apk add --no-cache bash && \
|
||||
# rm -rf /var/cache/apk/* && \
|
||||
# chmod -R 755 /usr/share/nginx/html && \
|
||||
# mkdir -p /var/cache/nginx && \
|
||||
# chown -R nginx:nginx /var/cache/nginx && \
|
||||
# chmod -R 755 /var/cache/nginx
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost/ || exit 1
|
||||
USER nginx
|
||||
# USER nginx
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user