Fix devcontainer setup

This commit is contained in:
Mike Conrad
2025-06-20 10:47:20 -04:00
parent 761ea8fef8
commit 1696808c00
10 changed files with 31 additions and 53 deletions

View File

@ -1,5 +1,5 @@
FROM node:22-alpine AS base
WORKDIR /app
WORKDIR /app/frontend
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
@ -12,5 +12,5 @@ EXPOSE 5173
ENTRYPOINT [ "yarn", "dev", "--host", "0.0.0.0" ]
FROM nginx:alpine AS production
COPY --from=build /app/dist/ /usr/share/nginx/html
COPY --from=build /app/frontend/dist/ /usr/share/nginx/html
ENTRYPOINT [ "nginx", "-g", "daemon off;" ]