-
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.
- Loading branch information
fshmidt
committed
Feb 24, 2023
1 parent
0117219
commit 3d1ea29
Showing
7 changed files
with
34 additions
and
4,141 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,21 +1,21 @@ | ||
FROM node:lts-alpine | ||
FROM node:14-alpine | ||
|
||
# make the 'app' folder the current working directory | ||
WORKDIR /app | ||
|
||
# add `/app/node_modules/.bin` to $PATH - allow running 'vite' | ||
#ENV PATH /app/node_modules/.bin:$PATH | ||
# Install global dependencies | ||
RUN npm install vite --global | ||
|
||
# copy both 'package.json' and 'package-lock.json' (if available) | ||
# Install app dependencies | ||
COPY package*.json ./ | ||
RUN npm install --unsafe-perm=true --allow-root | ||
|
||
# install project dependencies | ||
# Copy app source code | ||
COPY . . | ||
|
||
# Build app | ||
RUN npm run build | ||
|
||
RUN npm install @vitejs/plugin-vue --unsafe-perm=true --allow-root | ||
# Start app | ||
CMD [ "npm", "run", "dev", "--unsafe-perm=true", "--allow-root"] | ||
|
||
# copy project files and folders to the current working directory (i.e. 'app' folder) | ||
COPY . . | ||
RUN npm install --unsafe-perm=true --allow-root | ||
RUN npm install [email protected] --unsafe-perm=true --allow-root | ||
#RUN chown -R node ~/.npm | ||
#RUN chown -R node /app/node_modules/ | ||
CMD [ "npm", "run", "dev", "--unsafe-perm=true", "--allow-root"] |
Oops, something went wrong.