:boom: [Fix] Docker build error, and no longer host static html
Browse files- .github/workflows/deploy_llm_mixer.yml +0 -2
- Dockerfile +6 -9
.github/workflows/deploy_llm_mixer.yml
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
name: Deploy LLM Mixer
|
2 |
|
3 |
on:
|
4 |
-
push:
|
5 |
-
branches: ["main"]
|
6 |
workflow_dispatch:
|
7 |
|
8 |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
|
1 |
name: Deploy LLM Mixer
|
2 |
|
3 |
on:
|
|
|
|
|
4 |
workflow_dispatch:
|
5 |
|
6 |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
Dockerfile
CHANGED
@@ -1,17 +1,14 @@
|
|
1 |
FROM node:18-slim
|
2 |
-
RUN useradd -m -u 1000 user
|
3 |
-
USER user
|
4 |
-
ENV HOME=/home/user
|
5 |
-
ENV PATH=/home/user/.local/bin:$PATH
|
6 |
WORKDIR $HOME/app
|
7 |
-
RUN
|
8 |
RUN git clone https://github.com/Rob--W/cors-anywhere.git cors-anywhere
|
9 |
-
|
10 |
RUN npm install
|
11 |
RUN npm install http-server -g
|
12 |
-
COPY
|
|
|
13 |
VOLUME /data
|
14 |
ENV PORT=12349
|
15 |
-
|
16 |
EXPOSE 12345
|
17 |
-
|
|
|
1 |
FROM node:18-slim
|
|
|
|
|
|
|
|
|
2 |
WORKDIR $HOME/app
|
3 |
+
RUN apt-get update && apt-get install -y git
|
4 |
RUN git clone https://github.com/Rob--W/cors-anywhere.git cors-anywhere
|
5 |
+
WORKDIR $HOME/app/cors-anywhere
|
6 |
RUN npm install
|
7 |
RUN npm install http-server -g
|
8 |
+
COPY . $HOME/app
|
9 |
+
WORKDIR $HOME/app
|
10 |
VOLUME /data
|
11 |
ENV PORT=12349
|
12 |
+
CMD node ./cors-anywhere/server.js &
|
13 |
EXPOSE 12345
|
14 |
+
CMD http-server -p 12345
|