Skip to content

Commit ffc02b7

Browse files
committed
added alpine and slim base images
1 parent d2f2afc commit ffc02b7

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

{{cookiecutter.app_slug}}/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM python:3.6.5
1+
FROM python:3.6.5-slim
22

3-
# install environment dependencies
4-
RUN apt-get update -yqq \
5-
&& apt-get install -yqq --no-install-recommends \
6-
netcat \
7-
&& apt-get -q clean
3+
# install netcat
4+
RUN apt-get update \
5+
&& apt-get -y install netcat \
6+
&& apt-get clean
87

98
# set working directory
109
RUN mkdir -p /usr/src/app
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM postgres
1+
FROM postgres:10.4-alpine
22

33
# run create.sql on init
44
ADD create.sql /docker-entrypoint-initdb.d

{{cookiecutter.app_slug}}/setup-with-docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Use this guide if you want to use Docker in your project.
44

5-
> Built with Docker v18.03.0-ce.
5+
> Built with Docker v18.03.1-ce.
66
77
## Getting Started
88

0 commit comments

Comments
 (0)