Use with Docker
For those who want to use Tartiflette within a docker image, you can find a Dockerfile
sample below.
Create a Dockerfile
at the root level of your Tartiflette recipes manager.
This Dockerfile
includes:
- pipenv
- tartiflette dependencies
cmake
.
FROM python:3.7.3
RUN apt-get update && apt-get install -y cmake
RUN pip install --user pipenv
ENV PYTHONPATH=/usr/src/app/
ENV PATH="$PATH:/root/.local/bin"
WORKDIR /usr/src/app
COPY Pipfile /usr/src/app/
RUN pipenv install
COPY . /usr/src/app/
EXPOSE 8080
CMD ["pipenv", "run", "python", "-m", "recipes_manager"]