flatten COPY files

This commit is contained in:
Karol Wypchlo 2021-07-26 14:00:20 +02:00
parent a3e12327c0
commit 5d7f02a1c8
5 changed files with 7 additions and 19 deletions

View File

@ -2,8 +2,7 @@ FROM node:16.5.0-alpine
WORKDIR /usr/app
COPY package.json .
COPY yarn.lock .
COPY package.json yarn.lock ./
ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn
@ -11,8 +10,6 @@ RUN yarn
COPY public ./public
COPY src ./src
COPY styles ./styles
COPY next.config.js .
COPY postcss.config.js .
COPY tailwind.config.js .
COPY next.config.js postcss.config.js tailwind.config.js ./
CMD ["sh", "-c", "env | grep -E 'NEXT_PUBLIC|KRATOS|STRIPE' > .env.local && yarn build && yarn start"]

View File

@ -2,8 +2,7 @@ FROM node:16.5.0-alpine
WORKDIR /usr/app
COPY package.json .
COPY yarn.lock .
COPY package.json yarn.lock ./
RUN yarn

View File

@ -2,8 +2,7 @@ FROM node:16.5.0-alpine
WORKDIR /usr/app
COPY package.json .
COPY yarn.lock .
COPY package.json yarn.lock ./
RUN yarn

View File

@ -10,8 +10,7 @@ RUN echo '*/5 * * * * /usr/app/cli/run critical > /dev/stdout' >> /etc/crontabs/
# schedule extended checks to run on every hour (optional checks, report only)
RUN echo '0 * * * * /usr/app/cli/run extended > /dev/stdout' >> /etc/crontabs/root
COPY package.json .
COPY yarn.lock .
COPY package.json yarn.lock ./
RUN yarn

View File

@ -4,8 +4,7 @@ RUN apk update && apk add autoconf automake build-base libtool nasm pkgconfig
WORKDIR /usr/app
COPY package.json .
COPY yarn.lock .
COPY package.json yarn.lock ./
ENV GATSBY_TELEMETRY_DISABLED 1
ENV CYPRESS_INSTALL_BINARY 0
@ -14,12 +13,7 @@ RUN yarn
COPY data ./data
COPY src ./src
COPY static ./static
COPY gatsby-browser.js .
COPY gatsby-config.js .
COPY gatsby-node.js .
COPY gatsby-ssr.js .
COPY postcss.config.js .
COPY tailwind.config.js .
COPY gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-ssr.js postcss.config.js tailwind.config.js ./
RUN yarn build