mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-06 07:13:39 +00:00
Add Caddyfile rather than nginx
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -10,11 +10,11 @@ COPY . .
|
||||
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
FROM caddy:2.5.2-alpine as production-stage
|
||||
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
WORKDIR /my-site
|
||||
|
||||
COPY nginx.conf /etc/nginx/
|
||||
COPY --from=build-stage /app/dist ./
|
||||
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
Reference in New Issue
Block a user