-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shrink docker image from 530MB -> 250MB (#242)
- Loading branch information
1 parent
51b8808
commit d84c8fb
Showing
3 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# syntax=docker/dockerfile:1.11 | ||
FROM node:current-alpine AS builder | ||
FROM node:lts-alpine AS builder | ||
|
||
WORKDIR /veritable-ui | ||
|
||
|
@@ -32,20 +32,18 @@ ENV NODE_ENV=${NODE_ENV} | |
|
||
RUN npx playwright install --with-deps | ||
|
||
|
||
CMD ["npm", "run", "test:playwright"] | ||
|
||
|
||
# service | ||
FROM node:current-alpine AS service | ||
# Service | ||
FROM node:lts-alpine AS service | ||
|
||
WORKDIR /veritable-ui | ||
|
||
RUN apk add --update coreutils curl | ||
RUN apk add --no-cache coreutils curl | ||
RUN npm -g install [email protected] | ||
|
||
COPY package*.json ./ | ||
RUN npm ci --omit-dev | ||
RUN npm ci --omit=dev | ||
|
||
COPY public ./public | ||
COPY knexfile.js ./ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters