feat(fotograf-de-scraper): initial setup with backend and frontend scaffold [32788f42]
This commit is contained in:
18
fotograf-de-scraper/frontend/Dockerfile
Normal file
18
fotograf-de-scraper/frontend/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Use a lightweight Nginx image to serve the React app
|
||||
FROM nginx:alpine
|
||||
|
||||
# Set working directory to nginx's default static file directory
|
||||
WORKDIR /usr/share/nginx/html
|
||||
|
||||
# Remove default Nginx static assets
|
||||
RUN rm -rf ./*
|
||||
|
||||
# Copy the built React app from the builder stage
|
||||
# The React app is built using `npm run build` which creates a `dist` directory
|
||||
COPY ./dist .
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Command to start Nginx (default command of the base image)
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user