Skip to content

Commit

Permalink
Optimize dockerfile-alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcHagen committed Jun 22, 2022
1 parent e94c9a4 commit f9f6414
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docker/dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@ WORKDIR /app

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1

# Cache docker layers, faster development, less bandwidth much wauw
COPY package.json .
COPY package-lock.json .
RUN npm ci --production

# Copy all over
COPY . .
RUN npm ci --production && \
chmod +x /app/extra/entrypoint.sh
RUN chmod +x extra/entrypoint.sh

FROM louislam/uptime-kuma:base-alpine AS build_app
WORKDIR /app

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1

COPY . .
RUN npm ci && npm build
RUN npm ci && npm run build

FROM louislam/uptime-kuma:base-alpine AS release
WORKDIR /app
Expand Down

0 comments on commit f9f6414

Please sign in to comment.