mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
upgrade docker images to node 18, fix docker issue
This commit is contained in:
parent
0637a5ef72
commit
22cbf57241
|
@ -1,4 +1,4 @@
|
|||
FROM node:16 as build
|
||||
FROM node:18 as build
|
||||
WORKDIR /build/app
|
||||
COPY api/package.json api/yarn.lock api/.yarnrc.yml ./
|
||||
COPY api/.yarn ./.yarn
|
||||
|
@ -9,11 +9,11 @@ RUN yarn install --immutable
|
|||
COPY ./api .
|
||||
RUN yarn build
|
||||
|
||||
FROM node:16 as prod
|
||||
FROM node:18 as prod
|
||||
WORKDIR /app/api
|
||||
COPY --from=build /build/app/package.json /build/app/yarn.lock /build/app/.yarnrc.yml ./
|
||||
COPY --from=build /build/app/.yarn ./.yarn
|
||||
COPY --from=build /build/app/dist ./dist
|
||||
COPY ./lib ../lib
|
||||
COPY --from=build /build/lib ../lib
|
||||
RUN yarn install --immutable
|
||||
CMD ["yarn", "start"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:16 as build
|
||||
FROM node:18 as build
|
||||
WORKDIR /build/app
|
||||
COPY bot/package.json bot/yarn.lock bot/.yarnrc.yml ./
|
||||
COPY bot/.yarn ./.yarn
|
||||
|
@ -9,11 +9,11 @@ RUN yarn install --immutable
|
|||
COPY ./bot .
|
||||
RUN yarn build
|
||||
|
||||
FROM node:16 as prod
|
||||
FROM node:18 as prod
|
||||
WORKDIR /app/bot
|
||||
COPY --from=build /build/app/package.json /build/app/yarn.lock /build/app/.yarnrc.yml ./
|
||||
COPY --from=build /build/app/.yarn ./.yarn
|
||||
COPY --from=build /build/app/dist ./dist
|
||||
COPY ./lib ../lib
|
||||
COPY --from=build /build/lib ../lib
|
||||
RUN yarn install --immutable
|
||||
CMD ["yarn", "start"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:16 as build
|
||||
FROM node:18 as build
|
||||
WORKDIR /build/app
|
||||
COPY bridge/package.json bridge/yarn.lock bridge/.yarnrc.yml ./
|
||||
COPY bridge/.yarn ./.yarn
|
||||
|
@ -9,11 +9,11 @@ RUN yarn install --immutable
|
|||
COPY ./bridge .
|
||||
RUN yarn build
|
||||
|
||||
FROM node:16 as prod
|
||||
FROM node:18 as prod
|
||||
WORKDIR /app/bridge
|
||||
COPY --from=build /build/app/package.json /build/app/yarn.lock /build/app/.yarnrc.yml ./
|
||||
COPY --from=build /build/app/.yarn ./.yarn
|
||||
COPY --from=build /build/app/dist ./dist
|
||||
COPY ./lib ../lib
|
||||
COPY --from=build /build/lib ../lib
|
||||
RUN yarn install --immutable
|
||||
CMD ["yarn", "start"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:16 as build
|
||||
FROM node:18 as build
|
||||
ARG VITE_API_URL
|
||||
ARG VITE_BOT_PREFIX
|
||||
WORKDIR /build/app
|
||||
|
@ -11,12 +11,12 @@ RUN yarn install --immutable
|
|||
COPY web .
|
||||
RUN yarn build
|
||||
|
||||
FROM node:16 as prod
|
||||
FROM node:18 as prod
|
||||
WORKDIR /app/web
|
||||
COPY --from=build /build/app/package.json /build/app/yarn.lock /build/app/.yarnrc.yml ./
|
||||
COPY --from=build /build/app/.yarn ./.yarn
|
||||
COPY --from=build /build/app/dist ./dist
|
||||
COPY ./lib ../lib
|
||||
COPY --from=build /build/lib ../lib
|
||||
RUN yarn add vite
|
||||
# Running this with bash -c because it won't exit on ctrl+c otherwise
|
||||
CMD ["bash", "-c", "yarn preview --port=80 --strictPort=true --clearScreen=false --host"]
|
||||
|
|
Loading…
Reference in a new issue