Browse Source

try to use alpine to reduce image size

pull/342/head
Guillaume Vincent 8 years ago
parent
commit
50fb81eae8
2 changed files with 3 additions and 6 deletions
  1. +2
    -5
      Dockerfile
  2. +1
    -1
      entrypoint.sh

+ 2
- 5
Dockerfile View File

@@ -1,9 +1,6 @@
FROM python:3.5
FROM python:3.5-alpine


RUN apt-get update && apt-get install -y \
supervisor \
netcat \
&& rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache supervisor netcat-openbsd postgresql-dev gcc python3-dev musl-dev


RUN mkdir /backend RUN mkdir /backend
WORKDIR /backend WORKDIR /backend


+ 1
- 1
entrypoint.sh View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh


while ! nc -z db 5432; do sleep 3; done while ! nc -z db 5432; do sleep 3; done




Loading…
Cancel
Save