File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 14
14
- name : Build the Postgres 13 Docker image
15
15
run : |
16
16
timetag=(`date +%Y%M%d`)
17
- docker build . --tag ghcr.io/viraweb123/docker- postgres:13.${timetag} --tag ghcr.io/viraweb123/docker- postgres:13
18
- docker push ghcr.io/viraweb123/docker- postgres:13
19
- docker push ghcr.io/viraweb123/docker- postgres:13.${timetag}
17
+ docker build . --tag ghcr.io/viraweb123/postgres:13.${timetag} --tag ghcr.io/viraweb123/postgres:13
18
+ docker push ghcr.io/viraweb123/postgres:13
19
+ docker push ghcr.io/viraweb123/postgres:13.${timetag}
Original file line number Diff line number Diff line change 1
1
FROM postgres:13
2
2
3
+ # #######################################################
3
4
# Install PostGIS
5
+ # #######################################################
4
6
RUN apt-get update \
5
7
&& apt-get install -y \
6
8
postgresql-13-postgis-3 \
7
9
postgresql-13-postgis-3-scripts \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- # Create the PostGIS extension
11
- RUN mkdir -p "/docker-entrypoint-initdb.d" \
10
+ && rm -rf /var/lib/apt/lists/* \
11
+ && apt-get clean \
12
+ && rm -rf var/cache/apt/archives/* \
13
+ && mkdir -p "/docker-entrypoint-initdb.d" \
12
14
&& echo "CREATE EXTENSION IF NOT EXISTS postgis;" > /docker-entrypoint-initdb.d/postgis_o125.sql
You can’t perform that action at this time.
0 commit comments