feat: docker builds the web app, full-stack serving verified
This commit is contained in:
@@ -12,7 +12,8 @@ RUN npm ci
|
||||
|
||||
COPY tsconfig.json vitest.config.ts ./
|
||||
COPY server ./server
|
||||
RUN npm run build:server && npm test
|
||||
COPY web ./web
|
||||
RUN npm run build:server && npm run build:web && npm test
|
||||
RUN npm prune --omit=dev
|
||||
|
||||
# ---- runtime stage ----
|
||||
@@ -23,6 +24,7 @@ WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
COPY --from=build /app/server/dist ./server/dist
|
||||
COPY --from=build /app/web/dist ./web/dist
|
||||
|
||||
ENV PORT=3000
|
||||
ENV DATA_DIR=/data
|
||||
|
||||
Reference in New Issue
Block a user