This is an automated email from the ASF dual-hosted git repository.
jgemignani pushed a commit to branch latest_test
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/latest_test by this push:
new f6c0a3e2 Fix dockerhub issue (#1101)
f6c0a3e2 is described below
commit f6c0a3e2a8b5274abb3f471cb5a1c8a499c93634
Author: Muhammad Taha Naveed <[email protected]>
AuthorDate: Wed Jul 26 06:08:47 2023 +0500
Fix dockerhub issue (#1101)
---
docker/Dockerfile | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/docker/Dockerfile b/docker/Dockerfile
index c30d6931..f0cab9b1 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -18,16 +18,28 @@
FROM postgres:14
-RUN apt-get update
-RUN apt-get install --assume-yes --no-install-recommends --no-install-suggests
\
- bison \
- build-essential \
- flex \
- postgresql-server-dev-14
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends --no-install-suggests \
+ bison \
+ build-essential \
+ flex \
+ postgresql-server-dev-14 \
+ locales
+
+ENV LANG=en_US.UTF-8
+ENV LC_COLLATE=en_US.UTF-8
+ENV LC_CTYPE=en_US.UTF-8
+
+RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
+ && locale-gen \
+ && update-locale LANG=en_US.UTF-8
COPY . /age
-RUN cd /age && make install
+
+WORKDIR /age
+
+RUN make && make install
COPY docker/docker-entrypoint-initdb.d/00-create-extension-age.sql
/docker-entrypoint-initdb.d/00-create-extension-age.sql
-CMD ["postgres", "-c", "shared_preload_libraries=age"]
+CMD ["postgres", "-c", "shared_preload_libraries=age"]
\ No newline at end of file