Add basic fullstack app

This commit is contained in:
Mike Conrad
2025-05-14 19:50:09 -04:00
parent 2deec3e936
commit e1dc9037a6
25 changed files with 3130 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;" ]