The Release Web workflow builds the Docker image with the repo root as context (file: ./apps/web/infra/Containerfile), but the Containerfile's ADD/COPY still referenced ./packages/web/dist and ./packages/web/infra/default.conf. After #1097 moved the web app to apps/web, those paths no longer exist, so buildx failed with '"/packages/web/infra/default.conf": not found'. Point both at ./apps/web/. Verified with a local multi-stage docker build against the apps/web build output.
16 lines
309 B
Docker
16 lines
309 B
Docker
FROM nginx:1.29.1-alpine-slim
|
|
|
|
RUN rm -r /usr/share/nginx/html \
|
|
&& mkdir -p /usr/share/nginx/html \
|
|
&& mkdir -p /etc/nginx/conf.d
|
|
|
|
WORKDIR /usr/share/nginx/html
|
|
|
|
ADD ./apps/web/dist .
|
|
|
|
COPY ./apps/web/infra/default.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|