attempt to fix the dockerfile for macos

This commit is contained in:
Evan Simkowitz
2024-08-28 12:32:41 -07:00
parent fd707dd857
commit a4ac8be3da
2 changed files with 12 additions and 23 deletions
+9 -17
View File
@@ -1,15 +1,12 @@
FROM ubuntu:latest
WORKDIR /app
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y golang-go nodejs npm && \
npm install -g corepack && \
corepack enable && \
yarn install && \
apt-get install -y libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb && \
export DISPLAY=:0 && \
service dbus start
RUN apt update && \
apt install -y golang-go nodejs npm libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb && \
npm install -g corepack
RUN corepack enable && \
yarn install
RUN git clone https://github.com/scripthaus-dev/scripthaus.git
WORKDIR /app/scripthaus
@@ -22,12 +19,7 @@ RUN mkdir waveterm
WORKDIR /app/waveterm
COPY . .
RUN yarn cache clean
RUN yarn
RUN scripthaus run electron-rebuild
RUN scripthaus run build-backend
RUN scripthaus run webpack-watch
RUN useradd -m -s /bin/bash wave
USER wave
ENV GOFLAGS="-buildvcs=false"
ENV DISPLAY=":0"
RUN useradd -ms /bin/bash wave