Adjust file handling in Docker build process
This commit is contained in:
parent
2bb3e3ea48
commit
3fb71b74cd
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y openssl
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ADD . .
|
ADD yarn.lock package.json ./
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
|
|
||||||
FROM node:16-bullseye-slim as prod
|
FROM node:16-bullseye-slim as prod
|
||||||
|
@ -12,4 +12,5 @@ FROM node:16-bullseye-slim as prod
|
||||||
RUN apt-get update && apt-get install openssl && apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install openssl && apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=base /app /app
|
COPY --from=base /app /app
|
||||||
|
ADD . .
|
||||||
CMD ["yarn", "start"]
|
CMD ["yarn", "start"]
|
||||||
|
|
Loading…
Reference in a new issue