feat: change Dockerfile server to python one
All checks were successful
Workflow / build (push) Successful in 56s
All checks were successful
Workflow / build (push) Successful in 56s
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -15,10 +15,16 @@ COPY . .
|
||||
# Build the app
|
||||
RUN yarn build
|
||||
|
||||
# Production stage - just the built files
|
||||
FROM alpine:latest
|
||||
# Production stage - tiny Python server
|
||||
FROM python:3.11-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy built static files
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the server
|
||||
CMD ["python", "-m", "http.server", "3000", "--directory", "dist"]
|
||||
|
||||
Reference in New Issue
Block a user