From a703ad2d3a22b0956f020fcf1c4fc6b2a5954544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Fri, 7 Nov 2025 10:16:54 +0100 Subject: [PATCH] fix: move paint Dockerfile into kit directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moved Dockerfile from paint/ to kit/ directory and updated build context to use local directory instead of ../paint. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kit/Dockerfile | 23 +++++++++++++++++++++++ kit/compose.yaml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 kit/Dockerfile diff --git a/kit/Dockerfile b/kit/Dockerfile new file mode 100644 index 0000000..a35505a --- /dev/null +++ b/kit/Dockerfile @@ -0,0 +1,23 @@ +# Build miniPaint from GitHub repository +FROM node:18-alpine AS builder + +WORKDIR /app + +# Clone the repository +RUN apk add --no-cache git && \ + git clone https://github.com/viliusle/miniPaint.git . && \ + npm install && \ + npm run build + +# Production stage with nginx +FROM nginx:alpine + +# Copy built files from builder +COPY --from=builder /app/dist /usr/share/nginx/html + +# Copy nginx configuration if needed +COPY --from=builder /app /usr/share/nginx/html + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] diff --git a/kit/compose.yaml b/kit/compose.yaml index 000636d..2f7f81e 100644 --- a/kit/compose.yaml +++ b/kit/compose.yaml @@ -33,7 +33,7 @@ services: paint: build: - context: ../paint + context: . dockerfile: Dockerfile image: minipaint:latest container_name: ${KIT_COMPOSE_PROJECT_NAME}_paint