32 lines
1 KiB
Docker
32 lines
1 KiB
Docker
FROM ubuntu:latest
|
|
|
|
RUN apt-get update ;\
|
|
apt-get upgrade -y;\
|
|
apt-get install -y --no-install-recommends \
|
|
locales openssh-client gnupg ca-certificates \
|
|
build-essential \
|
|
zip wget git less vim \
|
|
python3 python3-psutil python3-pip python3-setuptools pipenv \
|
|
# PostgreSQL
|
|
libpq-dev \
|
|
# debugging
|
|
less vim wget curl \
|
|
rsync jq tini gosu;
|
|
|
|
RUN echo 'configure locale' && \
|
|
sed --in-place '/en_US.UTF-8/s/^#//' /etc/locale.gen && \
|
|
locale-gen
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
COPY *.sh /usr/local/bin/
|
|
# requirements.txt generated by running `pipenv lock -r > ../../containers/stats/requirements.txt` in `scripts/metrics`.
|
|
# COPY requirements.txt /tmp/
|
|
# RUN pip install -q -r /tmp/requirements.txt
|
|
RUN chmod og+rx /usr/local/bin/*.sh
|
|
RUN wget -q https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 -O /usr/local/bin/cloud_sql_proxy;\
|
|
chmod +x /usr/local/bin/cloud_sql_proxy
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|
|
CMD ["/bin/bash"]
|