Merge branch 'dev' into 'main'
Updated docker files See merge request illegitimate/illegitimate-bot!175
This commit is contained in:
@@ -2,11 +2,13 @@ FROM node-cache as cache
|
|||||||
|
|
||||||
FROM node:20.9.0-alpine3.18
|
FROM node:20.9.0-alpine3.18
|
||||||
|
|
||||||
COPY --from=cache /node_modules /app/node_modules
|
COPY --from=cache /cache/node_modules /app/node_modules
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENV NODE_PATH=dist/
|
||||||
|
|
||||||
RUN yarn global add typescript
|
RUN yarn global add typescript
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
FROM node:20.9.0-alpine3.18
|
FROM node:20.9.0-alpine3.18
|
||||||
|
|
||||||
COPY package.json ./
|
RUN mkdir /cache
|
||||||
COPY yarn.lock ./
|
|
||||||
|
COPY package.json /cache
|
||||||
|
COPY yarn.lock /cache
|
||||||
|
|
||||||
|
WORKDIR /cache
|
||||||
|
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
Reference in New Issue
Block a user