mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
remove Dockerfile
This commit is contained in:
parent
b5c358def9
commit
6bb8a182e5
24
Dockerfile
24
Dockerfile
@ -1,24 +0,0 @@
|
||||
# use the version that corresponds to your electron version
|
||||
FROM node:14.16
|
||||
|
||||
LABEL NAME="electron-wrapper"
|
||||
LABEL RUN="docker run --rm -it electron-wrapper bash"
|
||||
|
||||
# install electron dependencies or more if your library has other dependencies
|
||||
RUN apt-get update && apt-get install \
|
||||
git libx11-xcb1 libxcb-dri3-0 libxtst6 libnss3 libatk-bridge2.0-0 libgtk-3-0 libxss1 libasound2 \
|
||||
-yq --no-install-suggests --no-install-recommends \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# copy the source into /app
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN chown -R node /app
|
||||
|
||||
# install node modules and perform an electron rebuild
|
||||
USER node
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
USER node
|
||||
CMD bash
|
Loading…
x
Reference in New Issue
Block a user