Skip to content

Commit b4762a4

Browse files
[update] image name
1 parent 5f77a8e commit b4762a4

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/publish.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: Build the Postgres 13 Docker image
1515
run: |
1616
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}

Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
FROM postgres:13
22

3+
########################################################
34
# Install PostGIS
5+
########################################################
46
RUN apt-get update \
57
&& apt-get install -y \
68
postgresql-13-postgis-3 \
79
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" \
1214
&& echo "CREATE EXTENSION IF NOT EXISTS postgis;" > /docker-entrypoint-initdb.d/postgis_o125.sql

0 commit comments

Comments
 (0)