-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (44 loc) · 1.2 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Use the official Ubuntu image as a base
FROM ubuntu:20.04
# First run apt-get update to get the latest package lists
RUN apt-get update
# Install the packages you need
RUN apt-get install -y \
sudo \
python3-virtualenv \
python3.8 \
python3.8-dev \
gcc \
libffi-dev \
libkrb5-dev \
libffi7 \
libssl-dev \
libyaml-dev \
libsasl2-dev \
libldap2-dev \
default-libmysqlclient-dev \
sshpass \
git
# Copy the provision.sh script to the container
COPY provision-docker.sh /usr/local/bin/
# Make the provision.sh script executable
RUN chmod +x /usr/local/bin/provision-docker.sh
# Run the provision.sh script when the container starts
RUN /usr/local/bin/provision-docker.sh
# Install some packages
RUN apt-get install -y procps htop net-tools iproute2
# Support 32 bit binaries
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386
# Change entrypoint
ENTRYPOINT ["/opt/polemarch/bin/polemarchctl"]
ENV POLEMARCH_LOG_LEVEL=DEBUG
ENV WORKER=ENABLE
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV POLEMARCH_LOG_LEVEL=DEBUG
ENV POLEMARCH_DEBUG=true
ENV COLUMNS=80
ENV LINES=40
CMD ["dockerrun"]