-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 866 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM alpine:3.11
LABEL version="1.0" \
description="Run `kakoune-blackboard` in a docker container" \
maintainer="Frank LENORMAND <[email protected]>" \
source="https://github.com/kakoune-editor/kakoune-blackboard"
RUN \
apk update \
&& echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories \
&& apk add git kakoune python3
RUN \
addgroup kakoune \
&& adduser -D -G kakoune kakoune \
&& chown -R kakoune:kakoune /home/kakoune
USER kakoune
RUN \
cd /home/kakoune \
&& git clone https://github.com/kakoune-editor/kakoune-blackboard.git
WORKDIR /home/kakoune/kakoune-blackboard
RUN \
python3 -m venv .env \
&& source .env/bin/activate \
&& pip3 install -r requirements.txt
COPY kakoune_blackboard.cfg .
CMD source .env/bin/activate \
&& irc3 -d kakoune_blackboard.cfg