commit d469ea3d6c5b0435bed3c0e29a2ec0c4bea32b3a Author: 刘昊昕 Date: Sat Oct 18 00:26:05 2025 +0800 commit diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..9d826e0 --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,28 @@ +name: Build and Push Docker Image + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ${{ secrets.DOCKER_USERNAME }}/sharelatex:5.4.1 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ae5cea1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +from sharelatex/sharelatex:5.4.1 + +RUN tlmgr install scheme-full + +RUN apt update +RUN apt install -y latex-cjk-all texlive-lang-chinese texlive-lang-english +RUN apt install -y xfonts-wqy + +RUN apt install -y texlive-xetex texlive-latex-extra texlive-science \ No newline at end of file