Add Caddyfile rather than nginx

This commit is contained in:
Dave Gallant
2022-08-21 17:01:00 +00:00
parent b059b01a0b
commit afa440e765
6 changed files with 14 additions and 36 deletions

View File

@@ -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;"]