-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (21 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM debian:bullseye-slim
WORKDIR /app
ENV NODE_MAJOR=18
ENV PATH="/root/.cargo/bin:${PATH}"
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update -y
RUN apt-get install -y nodejs libwebkit2gtk-4.0-dev build-essential wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
#COPY package*.json ./
#RUN npm install && npm install --save-dev @tauri-apps/cli
#COPY . .
# RUN npm run tauri build
#VOLUME [ "/app/src-tauri/target/release/bundle/deb/" ]
VOLUME [ "/app"]
CMD npm install && npm install --save-dev @tauri-apps/cli && npm run tauri build
#CMD npm run tauri build