From 838d80ce274e0634eddafc08bed6d5ba8e0403e1 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Sun, 12 Oct 2025 15:08:47 -0400 Subject: Get rid of Docker artifacts --- client/Dockerfile | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 client/Dockerfile (limited to 'client/Dockerfile') diff --git a/client/Dockerfile b/client/Dockerfile deleted file mode 100644 index 1e3926d..0000000 --- a/client/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -FROM --platform=$BUILDPLATFORM node:lts as builder -WORKDIR /opt/app - -COPY package.json package-lock.json ./ -RUN npm install - -COPY . ./ - -ARG BUILD_INFO="docker-latest" -ARG CLIENT_BUILD_ARGS="--debug" -RUN BASE_URL="__BASEURL__" node build.js --gzip ${CLIENT_BUILD_ARGS} - - -FROM --platform=$BUILDPLATFORM nginx:alpine as approot - -# Copy and fix script -COPY docker-start.sh / -RUN apk add --no-cache dos2unix && \ - dos2unix /docker-start.sh && \ - chmod +x /docker-start.sh - -WORKDIR /etc/nginx -COPY nginx.conf.docker ./nginx.conf - -WORKDIR /var/www -COPY --from=builder /opt/app/public/ . - - -FROM nginx:alpine as release - -RUN apk --no-cache add dumb-init -COPY --from=approot / / - -CMD ["/docker-start.sh"] -VOLUME ["/data"] - -ARG DOCKER_REPO -ARG BUILD_DATE -ARG SOURCE_COMMIT -LABEL \ - maintainer="" \ - org.opencontainers.image.title="${DOCKER_REPO}" \ - org.opencontainers.image.url="https://github.com/rr-/szurubooru" \ - org.opencontainers.image.documentation="https://github.com/rr-/szurubooru/blob/${SOURCE_COMMIT}/doc/INSTALL.md" \ - org.opencontainers.image.created="${BUILD_DATE}" \ - org.opencontainers.image.source="https://github.com/rr-/szurubooru" \ - org.opencontainers.image.revision="${SOURCE_COMMIT}" \ - org.opencontainers.image.licenses="GPL-3.0" -- cgit v1.3