Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving docker setup to alpine #3

Closed
sudhackar opened this issue Dec 5, 2019 · 2 comments
Closed

moving docker setup to alpine #3

sudhackar opened this issue Dec 5, 2019 · 2 comments

Comments

@sudhackar
Copy link
Contributor

Why use ubuntu which on installing does this?

Need to get 126 MB of archives.
After this operation, 440 MB of additional disk space will be used.

Instead use alpine which is small and just contains what's needed. I have tested this dockerfile

FROM python:3.8-alpine
RUN apk add --no-cache git gcc libc-dev linux-headers

RUN git clone https://github.com/SwiftLaTeX/SwiftLaTeX.git /app && \
    pip3 install -r /app/requirements.txt && echo "0.1"

WORKDIR /app
CMD ["python3", "wsgi.py"]

Change the repo url to https to make it work without ssh.

If OK I can send a PR.

@elliott-wen
Copy link
Contributor

elliott-wen commented Dec 5, 2019 via email

@sudhackar
Copy link
Contributor Author

closed via #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants