Skip to content

Create a dockerfile for the project #30

@thepetk

Description

@thepetk

Issue Details

The project should have a Dockerfile following specific rules for python projects. For more information take a look here: https://medium.com/geekculture/how-to-dockerize-your-flask-application-2d0487ecefb8

Workaround

I would expect a Dockerfile placed in the root directory of this repo:

simple_api/
   - dockerfile
   ...

An example dockerfile could be:

FROM <python_image>
WORKDIR <working_dir>
COPY <requirements file> <working_dir>
RUN pip install -r <requirements file>
# and more commands
...

After the implementation I'd expect that this command can build an image of the API:

docker build -f Dockerfile -t simple_api:latest .

And that this command can run a container with this image:

docker run --name simple_api -p 3000:3000 simple_api:latest

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

Status

Under Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions