graphql-engine/.circleci/base.dockerfile
2021-09-14 08:18:20 +00:00

26 lines
1.1 KiB
Docker

# NOTE!: If you update this file you need to:
#
# - take the hash of the new file with `sha256sum base.dockerfile`
# - update `&graphql_engine_base_image` in '.circleci/config.yml' with this new hash
# - update base image tag in 'server/packaging/build/Dockerfile' and 'pro/server/packaging/build/Dockerfile' with this new hash
FROM debian:buster-20210511-slim
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
RUN groupadd -g 1001 hasura && useradd -m -u 1001 -g hasura hasura
RUN apt-get update \
&& apt-get install -y gnupg2 curl apt-transport-https \
&& curl -s https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \
&& curl -s https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get install -y ca-certificates libkrb5-3 libpq5 libnuma1 unixodbc-dev msodbcsql17 default-libmysqlclient-dev default-mysql-client \
&& apt-get -y remove curl gnupg2 \
&& apt-get -y auto-remove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/share/doc/ \
&& rm -rf /usr/share/man/ \
&& rm -rf /usr/share/locale/