Update Dockerfile
Browse files- Dockerfile +1 -28
Dockerfile
CHANGED
@@ -1,34 +1,7 @@
|
|
1 |
-
FROM
|
2 |
-
|
3 |
-
# install git
|
4 |
-
RUN apt update
|
5 |
-
RUN apt install git
|
6 |
-
|
7 |
|
8 |
ARG DEBIAN_FRONTEND=noninteractive
|
9 |
|
10 |
ENV BING_HEADER ""
|
11 |
|
12 |
-
# Set home to the user's home directory
|
13 |
-
ENV HOME=/home/user \
|
14 |
-
PATH=/home/user/.local/bin:$PATH
|
15 |
-
|
16 |
-
# Set up a new user named "user" with user ID 1000
|
17 |
-
RUN useradd -o -u 1000 user && mkdir -p $HOME/app && chown -R user $HOME
|
18 |
-
|
19 |
-
# Switch to the "user" user
|
20 |
-
USER user
|
21 |
-
|
22 |
-
WORKDIR $HOME/app
|
23 |
-
|
24 |
-
|
25 |
-
RUN git clone https://github.com/Niansuh/Bingo.git Bingo
|
26 |
-
RUN chown -R user $HOME/app/Bingo
|
27 |
-
WORKDIR $HOME/app/Bingo
|
28 |
-
RUN npm install
|
29 |
-
RUN npm run build
|
30 |
-
|
31 |
-
ENV PORT 7860
|
32 |
-
EXPOSE 7860
|
33 |
-
|
34 |
CMD npm start
|
|
|
1 |
+
FROM niansuh/bingo:latest
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
ARG DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
ENV BING_HEADER ""
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
CMD npm start
|