Add fullstack example

This commit is contained in:
Mike Conrad
2025-06-11 15:23:27 -04:00
parent 0313358d16
commit f98e05b677
28 changed files with 3181 additions and 0 deletions

View File

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