clean up docker images

This commit is contained in:
Karol Wypchlo 2022-04-07 14:51:12 +02:00
parent 7963c2cb63
commit e8d68a0fa0
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
6 changed files with 21 additions and 12 deletions

View File

@ -2,14 +2,16 @@ FROM node:16.14.2-alpine
WORKDIR /usr/app
COPY packages/dashboard-v2/package.json packages/dashboard-v2/yarn.lock ./
COPY packages/dashboard-v2/package.json \
packages/dashboard-v2/yarn.lock \
./
RUN yarn --frozen-lockfile
COPY packages/dashboard/static ./static
COPY packages/dashboard/src ./src
COPY packages/dashboard/gatsby*.js ./
COPY packages/dashboard/postcss.config.js \
COPY packages/dashboard/gatsby*.js \
packages/dashboard/postcss.config.js \
packages/dashboard/tailwind.config.js \
./

View File

@ -2,7 +2,9 @@ FROM node:16.14.2-alpine
WORKDIR /usr/app
COPY packages/dashboard/package.json packages/dashboard/yarn.lock ./
COPY packages/dashboard/package.json \
packages/dashboard/yarn.lock \
./
ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn --frozen-lockfile

View File

@ -2,7 +2,9 @@ FROM node:16.14.2-alpine
WORKDIR /usr/app
COPY packages/dnslink-api/package.json packages/dnslink-api/yarn.lock ./
COPY packages/dnslink-api/package.json \
packages/dnslink-api/yarn.lock \
./
RUN yarn --frozen-lockfile

View File

@ -2,7 +2,9 @@ FROM node:16.14.2-alpine
WORKDIR /usr/app
COPY packages/handshake-api/package.json packages/handshake-api/yarn.lock ./
COPY packages/handshake-api/package.json \
packages/handshake-api/yarn.lock \
./
RUN yarn --frozen-lockfile

View File

@ -11,7 +11,9 @@ ENV PATH="/usr/app/bin:${PATH}"
RUN echo '*/5 * * * * source /etc/environment ; /usr/app/bin/cli run critical >> /proc/1/fd/1' >> /etc/crontabs/root && \
echo '0 * * * * source /etc/environment ; /usr/app/bin/cli run extended >> /proc/1/fd/1' >> /etc/crontabs/root
COPY packages/health-check/package.json packages/health-check/yarn.lock ./
COPY packages/health-check/package.json \
packages/health-check/yarn.lock \
./
RUN yarn --frozen-lockfile

View File

@ -4,7 +4,9 @@ RUN apk add --no-cache autoconf=2.71-r0 automake=1.16.4-r1 build-base=0.5-r2 lib
WORKDIR /usr/app
COPY packages/website/package.json packages/website/yarn.lock ./
COPY packages/website/package.json \
packages/website/yarn.lock \
./
ENV GATSBY_TELEMETRY_DISABLED 1
ENV CYPRESS_INSTALL_BINARY 0
@ -13,10 +15,7 @@ RUN yarn --frozen-lockfile
COPY packages/website/data ./data
COPY packages/website/src ./src
COPY packages/website/static ./static
COPY packages/website/gatsby-browser.js \
packages/website/gatsby-config.js \
packages/website/gatsby-node.js \
packages/website/gatsby-ssr.js \
COPY packages/website/gatsby-*.js \
packages/website/postcss.config.js \
packages/website/tailwind.config.js \
./