mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
0afa084158
* added supporting files for Dockerfile and dockerignore generation for python-flask lang * documenting how to build the docker image and how to spin up a container * updating pet store sample
16 lines
246 B
Docker
16 lines
246 B
Docker
FROM python:3-alpine
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY requirements.txt /usr/src/app/
|
|
|
|
RUN pip3 install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . /usr/src/app
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["python3"]
|
|
|
|
CMD ["-m", "swagger_server"] |