Skip to content

Commit 2c30a2b

Browse files
committed
add site Dockerfile
commit b545a70 Author: Steffan <[email protected]> Date: Fri Jun 24 15:10:05 2022 +0200 remove circleci commit fc8ebad Author: Steffan <[email protected]> Date: Fri Jun 24 15:08:46 2022 +0200 add migrate.js commit 7209838 Author: Steffan <[email protected]> Date: Fri Jun 24 15:06:40 2022 +0200 update Dockerfile commit 7b2baca Merge: 6cd461c e238516 Author: Steffan <[email protected]> Date: Fri Jun 24 14:45:13 2022 +0200 Merge branch 'develop' into feature/do # Conflicts: # package.json commit 6cd461c Author: Steffan <[email protected]> Date: Fri Jun 24 14:31:25 2022 +0200 update fonts commit e65319e Author: Steffan <[email protected]> Date: Thu May 19 11:38:47 2022 +0200 update Dockerfile commit 3d2efcb Author: Steffan <[email protected]> Date: Thu May 19 11:30:09 2022 +0200 update Dockerfile commit ccc30a4 Author: Steffan <[email protected]> Date: Thu May 19 09:14:29 2022 +0200 update Dockerfile commit 5869458 Author: Steffan <[email protected]> Date: Thu May 19 08:54:27 2022 +0200 update Dockerfile commit 7518682 Author: Steffan <[email protected]> Date: Wed May 18 17:09:15 2022 +0200 update Dockerfile commit d37eed8 Author: Steffan <[email protected]> Date: Wed May 18 15:37:06 2022 +0200 update Dockerfile commit 23ba68c Author: Steffan <[email protected]> Date: Wed May 18 15:27:50 2022 +0200 update Dockerfile commit 7ac7a58 Author: Steffan <[email protected]> Date: Wed May 18 09:45:38 2022 +0200 update Dockerfile commit d6a48ec Author: Steffan <[email protected]> Date: Wed May 18 08:47:51 2022 +0200 update Dockerfile commit fc3c127 Author: Steffan <[email protected]> Date: Tue May 17 18:58:02 2022 +0200 update Dockerfile commit 2c9cb03 Author: Steffan <[email protected]> Date: Tue May 17 18:38:21 2022 +0200 update Dockerfile commit 7b51b5c Author: Steffan <[email protected]> Date: Tue May 17 18:17:49 2022 +0200 update Dockerfile commit 64d23db Author: Steffan <[email protected]> Date: Tue May 17 18:07:36 2022 +0200 update Dockerfile commit 138f4c3 Author: Steffan <[email protected]> Date: Tue May 17 17:28:01 2022 +0200 update Dockerfile commit 255d6b9 Author: Steffan <[email protected]> Date: Tue May 17 12:18:46 2022 +0200 update Dockerfile commit 0364cad Author: Steffan <[email protected]> Date: Tue May 17 12:13:15 2022 +0200 update Dockerfile commit e069c0d Author: Steffan <[email protected]> Date: Tue May 17 09:42:26 2022 +0200 update Dockerfile commit 6e95eb9 Author: Steffan <[email protected]> Date: Mon May 16 23:07:07 2022 +0200 update Dockerfile commit ab0e91d Author: Steffan <[email protected]> Date: Mon May 16 22:24:42 2022 +0200 update Dockerfile commit 2ff152f Author: Steffan <[email protected]> Date: Mon May 16 22:18:48 2022 +0200 update Dockerfile commit 3ff8c7f Author: Steffan <[email protected]> Date: Mon May 16 17:57:24 2022 +0200 update Dockerfile commit 6889be5 Author: Steffan <[email protected]> Date: Mon May 16 17:44:57 2022 +0200 update Dockerfile commit b935da6 Author: Steffan <[email protected]> Date: Mon May 16 17:42:29 2022 +0200 update Dockerfile commit 6c9d9ce Author: Steffan <[email protected]> Date: Mon May 16 17:38:00 2022 +0200 update Dockerfile commit 34bf183 Author: Steffan <[email protected]> Date: Mon May 16 17:36:08 2022 +0200 update Dockerfile commit b6b6ea9 Author: Steffan <[email protected]> Date: Mon May 16 17:34:18 2022 +0200 update Dockerfile commit db6faf8 Author: Steffan <[email protected]> Date: Mon May 16 17:30:32 2022 +0200 update Dockerfile commit 0f67142 Author: Steffan <[email protected]> Date: Mon May 16 17:17:38 2022 +0200 add Dockerfile commit bc98475 Author: Steffan <[email protected]> Date: Mon May 16 16:53:40 2022 +0200 update do config commit 271d95f Author: Steffan <[email protected]> Date: Mon May 16 16:52:49 2022 +0200 update do config commit 982f740 Author: Steffan <[email protected]> Date: Mon May 16 16:25:49 2022 +0200 add do config
1 parent e238516 commit 2c30a2b

27 files changed

+773
-85
lines changed

β€Ž.circleci/config.ymlβ€Ž

Lines changed: 0 additions & 46 deletions
This file was deleted.

β€Ž.circleci/exclude.txtβ€Ž

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Ž.gitignoreβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/assets/uikit
33
!/assets/google
44
/css
5-
/fonts
65
main.min.js
76
js/*.min.js
87
.DS_Store

β€ŽDockerfileβ€Ž

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
FROM node:16-alpine as build
2+
3+
# environment variables
4+
ARG COMMIT_HASH=empty
5+
ENV COMMIT_HASH $COMMIT_HASH
6+
7+
# install dependencies
8+
WORKDIR /app
9+
COPY package.json .
10+
COPY yarn.lock .
11+
RUN yarn install
12+
13+
# install uikit
14+
WORKDIR /app/node_modules/uikit
15+
RUN yarn install
16+
17+
# build uikit
18+
WORKDIR /app
19+
COPY . .
20+
RUN mv ./node_modules/uikit ./assets && \
21+
yarn compile
22+
23+
# cleanup
24+
RUN sed -i "s/{{BUILD}}/$COMMIT_HASH/g" app/main.min.js && \
25+
sed -i "s/{{BUILD}}/$COMMIT_HASH/g" docs/app/main.min.js && \
26+
sed -i "s/{{BUILD}}/$COMMIT_HASH/g" docs/index.html && \
27+
sed -i "s/{{BUILD}}/$COMMIT_HASH/g" index.html && \
28+
rm -rf ./node_modules/ && \
29+
rm -rf ./assets/uikit/node_modules/
30+
31+
# build uikit v2
32+
FROM node:16-alpine as build-v2
33+
ADD https://github.com/uikit/uikit-site/releases/download/2016.12/uikit-site-v2.zip uikit.zip
34+
RUN unzip uikit.zip -d ./uikit && \
35+
rm uikit.zip && \
36+
mv ./uikit ./app
37+
38+
WORKDIR /app
39+
RUN yarn install && \
40+
yarn gulp build-site && \
41+
rm -rf ./node_modules/
42+
43+
# setup httpd
44+
FROM httpd:2.4-alpine as httpd
45+
WORKDIR /usr/local/apache2
46+
RUN sed -i "s/ServerAdmin [email protected]/ServerAdmin [email protected]/" ./conf/httpd.conf && \
47+
sed -i "s/AllowOverride None/AllowOverride All/" ./conf/httpd.conf && \
48+
sed -i "/LoadModule rewrite_module/s/^#//g" ./conf/httpd.conf && \
49+
sed -i "/LoadModule expires_module/s/^#//g" ./conf/httpd.conf
50+
51+
# copy htdocs
52+
WORKDIR /usr/local/apache2/htdocs
53+
COPY --from=build /app/ .
54+
COPY --from=build-v2 /app/ ./v2
19.8 KB
Binary file not shown.

β€Žfonts/ProximaNova-Light-webfont.svgβ€Ž

Lines changed: 228 additions & 0 deletions
Loading
43.9 KB
Binary file not shown.
22.9 KB
Binary file not shown.
17.7 KB
Binary file not shown.
20.1 KB
Binary file not shown.

0 commit comments

Comments
Β (0)