mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-10-29 17:40:28 +00:00
install from lockfile & remove yarn from runtime
This commit is contained in:
@@ -6,7 +6,7 @@ COPY src/ src
|
||||
COPY static/ static
|
||||
COPY package.json yarn.lock svelte.config.js tsconfig.json vite.config.ts ./
|
||||
|
||||
RUN yarn
|
||||
RUN yarn --frozen-lockfile
|
||||
RUN yarn build
|
||||
|
||||
FROM node:22-alpine3.20
|
||||
@@ -14,9 +14,6 @@ FROM node:22-alpine3.20
|
||||
WORKDIR /opt/infra-map
|
||||
COPY --from=builder /app/build build
|
||||
|
||||
COPY package.json .
|
||||
RUN yarn --production
|
||||
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
|
||||
|
||||
Reference in New Issue
Block a user