This commit is contained in:
刘昊昕
2025-10-18 00:26:05 +08:00
commit d469ea3d6c
2 changed files with 37 additions and 0 deletions

28
.github/workflows/docker.yaml vendored Normal file
View File

@@ -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

9
Dockerfile Normal file
View File

@@ -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