Skip to content

Commit c376cd3

Browse files
committed
Switch to Alpine base image and add package versions
1 parent 420f5c5 commit c376cd3

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode/*

Dockerfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
FROM debian:8
2-
MAINTAINER Antonio Esposito "kobe@member.fsf.org"
1+
FROM alpine:3.9
32

4-
RUN apt update && apt install -y \
5-
python-pip python-dev libpq-dev libevent-dev \
6-
postgresql-client osm2pgsql curl wget zip \
7-
&& rm -rf /var/lib/apt/lists/*
8-
RUN pip install pgcli
3+
RUN apk --no-cache update && \
4+
apk --no-cache add \
5+
gcc=8.2.0-r2 \
6+
postgresql-client=11.1-r0 \
7+
musl-dev=1.1.20-r3 \
8+
postgresql-dev=11.1-r0 \
9+
python2-dev=2.7.15-r3 \
10+
py2-pip=18.1-r0
911

10-
RUN useradd -u 1000 -d /tmp app
12+
RUN pip install 'pgcli==2.0.2'
13+
14+
# Drop permissions and run as UID 1000 user
15+
RUN adduser -D -u 1000 app
1116
USER app
1217

1318
CMD ["true"]

0 commit comments

Comments
 (0)