Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

RohanRusta21
Copy link

@RohanRusta21 RohanRusta21 commented Nov 5, 2023

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

Copy link

@github-actions github-actions bot left a 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 :)

@Milind220
Copy link
Collaborator

@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"
Copy link
Collaborator

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

Copy link
Author

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 .
Copy link
Collaborator

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

@Milind220 Milind220 closed this Feb 10, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants