Skip to content

Commit 2e687aa

Browse files
committed
Dockerize
1 parent 5b7f67e commit 2e687aa

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Cannot dockerignore .git - giza insists on using git on the docs repo

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM debian:9
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && \
6+
apt-get -y install make git python-pip python3-pip \
7+
ruby yard pkg-config libxml2-dev && \
8+
python -m pip install giza && \
9+
python3 -m pip install mut
10+
11+
WORKDIR /app
12+
13+
COPY . .
14+
15+
ENTRYPOINT ["./entrypoint.sh"]

entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
set -ex
4+
5+
if test -n "$1"; then
6+
exec "$@"
7+
else
8+
make publish
9+
fi

0 commit comments

Comments
 (0)