eight0153/CartPole-NEAT

View on GitHub
web/Dockerfile

Summary

Maintainability
Test Coverage
FROM python:3.7-alpine
LABEL maintainer="Anthony Dickson <eight0153@gmail.com>"

COPY requirements.txt /
RUN apk update \
    && apk add libpq \
    && apk add --no-cache --virtual .build-deps postgresql-dev gcc musl-dev \
    && pip install --no-cache-dir -r /requirements.txt \
    && apk del --no-cache .build-deps

EXPOSE 5000

COPY api/ /api
COPY entrypoint.sh /

ENTRYPOINT ["sh", "entrypoint.sh"]