-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Based on work of @jovandeginste see : #463 (comment)
- Loading branch information
DavidHenryThoreau
authored and
DavidHenryThoreau
committed
May 15, 2024
1 parent
40841a6
commit 954f6ac
Showing
2 changed files
with
12 additions
and
8 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
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,4 +1,4 @@ | ||
FROM node:18 | ||
FROM node:18-alpine | ||
|
||
MAINTAINER [email protected] | ||
|
||
|
@@ -18,7 +18,8 @@ ENV VITE_APP_API_URL $VITE_APP_API_URL | |
# install dependencies | ||
COPY package.json /usr/src/app/package.json | ||
COPY yarn.lock /usr/src/app/yarn.lock | ||
RUN yarn install --silent | ||
RUN yarn install --silent && yarn cache clean --force | ||
RUN npm run build | ||
|
||
# copy source | ||
COPY . /usr/src/app/ | ||
COPY . /usr/src/app/ |