Refactor Dockerfile commands for astro and payload folders
This commit is contained in:
parent
c9574334a4
commit
5ccf5071fa
@ -1,4 +1,3 @@
|
||||
node_modules
|
||||
yarn.lock
|
||||
Dockerfile
|
||||
README.md
|
@ -1,8 +1,8 @@
|
||||
FROM node:lts-alpine as base
|
||||
WORKDIR /base
|
||||
COPY ./package.json ./package.json
|
||||
RUN yarn install
|
||||
COPY ./ ./
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
COPY . .
|
||||
|
||||
FROM base AS dev
|
||||
ENV NODE_ENV=development
|
||||
@ -12,7 +12,7 @@ CMD ["yarn","dev"]
|
||||
FROM base AS build
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /build
|
||||
COPY --from=base /base ./
|
||||
COPY --from=base /base .
|
||||
ADD "https://random-uuid.deno.dev" skipcache
|
||||
RUN yarn build
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
node_modules
|
||||
yarn.lock
|
||||
Dockerfile
|
@ -1,7 +1,7 @@
|
||||
FROM node:lts-alpine as base
|
||||
WORKDIR /base
|
||||
COPY ./package.json .
|
||||
RUN yarn install
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
COPY . .
|
||||
|
||||
FROM base AS dev
|
||||
|
Loading…
Reference in New Issue
Block a user