revert dockerfile
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,17 +1,11 @@
|
|||||||
# Use the official Nginx image as the base
|
# use bun to serve
|
||||||
FROM nginx:alpine
|
|
||||||
|
|
||||||
# Remove default nginx website
|
FROM oven/bun:latest
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
|
||||||
|
|
||||||
# Copy build output from dist folder to nginx html directory
|
WORKDIR /app
|
||||||
COPY build/ /usr/share/nginx/html/
|
|
||||||
|
|
||||||
# Copy custom nginx config
|
COPY . .
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
|
||||||
|
|
||||||
# Expose port 80
|
RUN bun install
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
# Start nginx
|
CMD ["bun", "run", "dev"]
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user