forked from ornicar/zulip-remind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 1.01 KB
/
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
35
FROM debian:buster-slim
LABEL author="Fabian Hintringer" \
name="reminder-bot" \
version=1.0.0
ARG REDIS_PORT \
REDIS_HOST \
REDIS_PASSWORD
ENV REDIS_HOST=$REDIS_HOST \
REDIS_PORT=$REDIS_PORT \
REDIS_PASSWORD=${REDIS_PASSWORD}
RUN mkdir -p /var/reminder-bot
COPY ./ /var/reminder-bot/
RUN cd /var/reminder-bot \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install curl unzip -y \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash \
&& export NVM_DIR="$HOME/.nvm" \
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" \
&& nvm install 14.4.0 -y\
&& apt-get update \
&& apt-get install npm -y\
&& npm install -g [email protected] \
&& npm install --global yarn --no-optionals -y \
&& yarn install \
&& chmod +x /var/reminder-bot/entrypoint.sh
ENTRYPOINT /var/reminder-bot/entrypoint.sh ${REDIS_HOST} ${REDIS_PORT} ${REDIS_PASSWORD}