-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Dockerfile for frontend (#11)
* feat: add dockerfile * fix: dockerfile deployment * fix: remove useless files in container * fix: remove useless files in container
- Loading branch information
1 parent
4528f70
commit d02f97b
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.md | ||
auxiliary/ | ||
js-inactive/ | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM alpine:latest as build | ||
|
||
WORKDIR /build | ||
|
||
RUN apk add unzip wget && \ | ||
wget https://arma.openlink.bot/assets/map.zip && \ | ||
unzip map.zip && \ | ||
rm map.zip | ||
|
||
FROM nginx:latest | ||
COPY --from=build /build/* /usr/share/nginx/html/map/ | ||
COPY . /usr/share/nginx/html/ | ||
WORKDIR /usr/share/nginx/html/ | ||
RUN mv ARES-Arma3-Online-Artillery-Calculator.html index.html |