Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-world-1989 authored Apr 2, 2024
1 parent a6d7486 commit ff9f4aa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#docker build --no-cache -t web .
#docker tag web endgfw/web:web-only
#docker push endgfw/web:web-only
FROM node:lts-alpine

RUN apk --no-cache add git
Expand All @@ -8,6 +11,10 @@ RUN npm install --global http-server

RUN git clone https://github.com/hello-world-1989/temp.git

RUN cd temp && git config pull.rebase true

EXPOSE 8081

CMD ["http-server", "temp", "-p", "8081", "-P", "https://end-gfw.com/"]
# CMD ["http-server", "temp", "-p", "8081", "-P", "https://end-gfw.com/"]

CMD cd /app/temp && git pull && cd /app && http-server temp -p 8081 -P https://end-gfw.com/

0 comments on commit ff9f4aa

Please sign in to comment.