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
|
# Build the app
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# Production stage - just the built files
|
# Production stage - tiny Python server
|
||||||
FROM alpine:latest
|
FROM python:3.11-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy built static files
|
# Copy built static files
|
||||||
COPY --from=builder /app/dist ./dist
|
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