add cache busting
Build and Push Container / build-and-push (push) Successful in 16s

This commit is contained in:
2026-05-28 16:01:42 -04:00
parent 6a30145171
commit 54746f4636
5 changed files with 65 additions and 9 deletions
+6 -8
View File
@@ -1,16 +1,14 @@
FROM docker.io/library/nginx:alpine
RUN rm /etc/nginx/conf.d/default.conf
RUN rm /etc/nginx/conf.d/default.conf && \
apk add --no-cache coreutils
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY src/index.html /usr/share/nginx/html/
COPY src/style.css /usr/share/nginx/html/
COPY src/script.js /usr/share/nginx/html/
COPY src/profile.jpeg /usr/share/nginx/html/
COPY src/ /src/
COPY build.sh /build.sh
RUN chmod +x /build.sh && SRC=/src DIST=/dist /bin/sh /build.sh && cp -r /dist/* /usr/share/nginx/html/ && rm -rf /src /build.sh /dist
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --retries=3 \
CMD wget -qO- http://localhost:8080/ || exit 1
HEALTHCHECK --interval=30s --timeout=3s --retries=3 CMD wget -qO- http://localhost:8080/ || exit 1