Skip to content

Commit

Permalink
Fix docker build files (#1104)
Browse files Browse the repository at this point in the history
This PR contains fix for dockerhub image. It will trigger a new build for latest tag when merged.
  • Loading branch information
MuhammadTahaNaveed authored Jul 26, 2023
1 parent 18456b3 commit 7d05a8e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
26 changes: 19 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,27 @@

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

Expand Down
10 changes: 9 additions & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ RUN apt-get install --assume-yes --no-install-recommends --no-install-suggests \
bison \
build-essential \
flex \
postgresql-server-dev-14
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

# Set current working directory to /age/ and build.
Expand Down

0 comments on commit 7d05a8e

Please sign in to comment.