Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add web-components #36

Merged
merged 14 commits into from
Dec 4, 2023
Prev Previous commit
fix(infra): docker build
  • Loading branch information
a-wing committed Dec 4, 2023
commit 3ed058927dd58662ab3cc990ade8b9d683c9f8ae
8 changes: 7 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Logs

webcomponents/**/logs
webcomponents/**/*.log
webcomponents/**/node_modules
webcomponents/**/dist
webcomponents/**/*.local

webui/**/logs
webui/**/*.log

webui/**/node_modules
webui/**/dist
webui/**/*.local
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ WORKDIR /src
COPY webui/package.json webui/package-lock.json .
RUN npm install

COPY webui .
COPY webcomponents webcomponents
COPY webui webui

WORKDIR /src/webui

RUN npm run build

Expand All @@ -18,7 +21,7 @@ RUN go mod download

COPY cloud .

COPY --from=builder-webui /src/dist /src/dist
COPY --from=builder-webui /src/webui/dist /src/dist

RUN go build -tags release -o joyrtc-cloud

Expand Down
2 changes: 2 additions & 0 deletions webcomponents/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
dist

# Logs
logs
*.log
Expand Down
Loading