Browse Source

Simplify doc && Dockerfile

pull/230/head
Timothée Oliger 5 years ago
parent
commit
ad5df08ee5
No known key found for this signature in database GPG Key ID: 19E0C7042397EC61
3 changed files with 7 additions and 16 deletions
  1. +4
    -8
      Dockerfile
  2. +2
    -7
      README.md
  3. +1
    -1
      uwsgi.ini

+ 4
- 8
Dockerfile View File

@ -1,10 +1,8 @@
ARG BUILD_DATE=""
ARG ARCH=amd64
ARG PYTHON_VERSION=3
ARG BUILD_DATE
# First stage
FROM docker.io/${ARCH}/python:${PYTHON_VERSION}-alpine3.8 as builder
FROM python:3.8-rc-alpine as builder
# Install deps
COPY requirements.txt /tmp
@ -20,7 +18,7 @@ RUN pip install --prefix="/install" --no-warn-script-location -r /tmp/requiremen
## Second stage
FROM docker.io/${ARCH}/python:${PYTHON_VERSION}-alpine3.8
FROM python:3.8-rc-alpine
ENV DEBUG False
ENV DB_NAME /data/hc.sqlite
@ -48,7 +46,5 @@ USER healthchecks
EXPOSE 8000/tcp
ARG SYNAPSE_VERSION
ARG PYTHON_VERSION
ARG BUILD_DATE
CMD ["uwsgi", "--enable-threads", "uwsgi.ini"]
CMD ["uwsgi","uwsgi.ini"]

+ 2
- 7
README.md View File

@ -301,16 +301,11 @@ To run the app, you can:
$ docker build -t healthchecks:latest .
$ docker volume create \
--driver local \
--opt type=tmpfs \
--opt device=tmpfs \
--opt o=uid=900,gid=900 \
healthchecks
$ docker volume create healthchecks
$ docker run -d \
--name healthchecks \
--mount source=healthchecks,target=/data \
-v healthchecks:/data \
-p 8000:8000 \
healthchecks:latest


+ 1
- 1
uwsgi.ini View File

@ -1,6 +1,6 @@
[uwsgi]
http-socket = :8000
enable-threads
enable-threads = true
plugin = python3
module = hc.wsgi:application
static-map = /static=static-collected


Loading…
Cancel
Save