-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Created Dockerfile & Python File for the Application #175
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work with your first PR for Ozon3! We will review your PR soon :)
@RohanRusta21 Hey Rohan, I've reviewed your PR. Unfortunately, I don't think that dockerizing Ozon3, which is intended to be used simply as a Python library, is a good idea or helpful to the people who use it. As such I've decided to not merge your PR. Thank you anyways for putting in the effort to make the PR. |
@@ -0,0 +1,14 @@ | |||
# Use an official Python runtime as a parent image | |||
FROM python:3.8 | |||
MAINTAINER label="Rohan Rustagi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LABEL maintainer="Rohan Rustagi" would be the modern way to write this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback.
WORKDIR /app | ||
|
||
# Copy your Python script into the container | ||
COPY *.py . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wouldn't scale well with projects as they grow, as it indiscriminately copies all files from the build context into the docker image
Hi @Milind220 @Miller2014 @lahdjirayhan @AliShahpurwala @Tomiiwa @ShootGan ,
I have created Dockerfile & Respective python code files which helps us the application to be get executed using cli commands. I have used Docker so that anyone can easily spin up the API in light weight containers without worrying about the installations of any external & 3rd part libraries. I hope this contribution is useful and valuable for the application. Also I have updated the README.md file with the steps so that anyone can easily follow them and use the application.
Please Review & Approve it :)
Thanks,
Rohan