Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 4a7a4f1

Browse files
committed
update build file
1 parent 0dec8c4 commit 4a7a4f1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ RUN wget -O caddy.tgz "https://caddyserver.com/download/build?os=linux&arch=amd6
55
RUN mkdir caddy
66
RUN tar -xvzf caddy.tgz -C caddy
77
RUN git clone https://github.com/hyperhq/website.git && git checkout update-tagline
8-
RUN cd website; npm install
9-
RUN cd website; npm run build
10-
EXPOSE 8080
11-
CMD /caddy/caddy -port 8080 -root /website/dist
8+
EXPOSE 80
9+
CMD /website/build.sh && /caddy/caddy -port 8080 -root /website/dist

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
npm install && npm run build
3+
git pull && npm install && npm run build

0 commit comments

Comments
 (0)