-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile_dev
37 lines (26 loc) · 904 Bytes
/
Dockerfile_dev
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
36
37
# docker exec -it my_container bash
FROM phusion/baseimage
# pre-req: generate ssh keys without password
# enable ssh and copy public key to the container
RUN rm -f /etc/service/sshd/down \
&& /etc/my_init.d/00_regen_ssh_host_keys.sh
COPY ./dock.pub /tmp/dock.pub
RUN cat /tmp/dock.pub >> /root/.ssh/authorized_keys \
&& rm -f /tmp/dock.pub
# update system
RUN apt-get update -qq \
# install python3
&& apt-get install -y --no-install-recommends \
nano tree curl git man wget \
python3 python3-dev python3-pip python3-setuptools \
# telegram bot
&& pip3 install --no-cache-dir \
python-telegram-bot feedparser --upgrade \
# PosgreSQL
# python3-psycopg2 \
py-postgresql \
# Clean up APT when done.
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Use baseimage-docker's init system.
# CMD ["/sbin/my_init"]
# WORKDIR = /opt/project