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

self-hosted version #22

Open
rica01 opened this issue Dec 5, 2023 · 1 comment
Open

self-hosted version #22

rica01 opened this issue Dec 5, 2023 · 1 comment

Comments

@rica01
Copy link

rica01 commented Dec 5, 2023

Hello. This is a great piece of work. Thank you for all your work.

Do you think it would be possible to have a self-hosted version?

@sanjib-sen
Copy link
Owner

Yes absolutely.

Do you have Docker installed in your system?
If yes, create this Dockerfile file in the .devcontainer directory of this repo,

#.devcontainer/Dockerfile

FROM texlive/texlive:latest-full
RUN apt-get update && apt-get install -y \
    git perl \
    && rm -rf /var/lib/apt/lists/* \
    && apt-get clean \
    && apt-get autoremove -y \
    && rm -rf /var/lib/apt/lists/* \
    && rm -rf /tmp/* \
    && echo welcome to WebLaTeX

Then in your .devcontainer/devcontainer.json file, replace "image": "sanjibsen/weblatex:latest", with
"build": { "dockerfile": "Dockerfile" }, (in line 5)

You are good to go.
Let me know if you need any help. I can create another example repository which you can just clone if you want?

References:

  1. https://code.visualstudio.com/docs/devcontainers/create-dev-container#_dockerfile
  2. https://github.com/sanjib-sen/weblatex-docker/blob/main/Dockerfile

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