Build Docker image from sources
This commit is contained in:
parent
8e38cad31d
commit
3d8e712719
1 changed files with 6 additions and 4 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -1,8 +1,10 @@
|
||||||
FROM alpine as build
|
FROM node:8-alpine as build
|
||||||
RUN apk add --no-cache curl unzip
|
RUN apk add --no-cache git
|
||||||
RUN curl -L `curl -s https://api.github.com/repos/nrenner/brouter-web/releases/latest | grep browser_download_url | cut -d '"' -f 4` -o brouter-web.zip
|
|
||||||
RUN mkdir /tmp/brouter-web
|
RUN mkdir /tmp/brouter-web
|
||||||
RUN unzip -d /tmp/brouter-web brouter-web.zip
|
WORKDIR /tmp/brouter-web
|
||||||
|
COPY . .
|
||||||
|
RUN yarn install
|
||||||
|
RUN yarn run build
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY --from=build /tmp/brouter-web/index.html /usr/share/nginx/html
|
COPY --from=build /tmp/brouter-web/index.html /usr/share/nginx/html
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue