fix: move paint Dockerfile into kit directory
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 <noreply@anthropic.com>
This commit is contained in:
23
kit/Dockerfile
Normal file
23
kit/Dockerfile
Normal file
@@ -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;"]
|
||||
@@ -33,7 +33,7 @@ services:
|
||||
|
||||
paint:
|
||||
build:
|
||||
context: ../paint
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: minipaint:latest
|
||||
container_name: ${KIT_COMPOSE_PROJECT_NAME}_paint
|
||||
|
||||
Reference in New Issue
Block a user