Skip to content

Commit

Permalink
Switched to Debian based image to fix vscode issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxinyu95 committed Feb 20, 2024
1 parent 0a6b010 commit e6e8725
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .docker/gitpod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# This is the Dockerfile for `algoxy:gitpod`.

FROM ghcr.io/xu-cheng/texlive-full:latest
FROM texlive/texlive:latest

USER root

# Add additional pkgs to https://github.com/xu-cheng/latex-docker/blob/master/setup.sh
RUN apt-get update && \
apt-get install -y \
fonts-noto-cjk fonts-freefont-ttf \
sudo wget bash-completion && \
apt-get clean && \
rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*

RUN apk add --no-cache \
font-noto-cjk ttf-freefont \
bash-completion sudo \
rm -rf /tmp/*

# Add gitpod user
RUN echo '%gitpod ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/gitpod \
&& addgroup -g 33333 gitpod && adduser -u 33333 -G gitpod -h /home/gitpod -s /bin/bash -D gitpod
RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod \
# passwordless sudo for users in the 'sudo' group
&& sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers

USER gitpod
WORKDIR /home/gitpod
Expand Down
10 changes: 5 additions & 5 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
image:
file: .docker/gitpod/Dockerfile

# vscode:
# extensions:
# - latex-workshop
vscode:
extensions:
- latex-workshop

# tasks:
# - init: make
tasks:
- init: make

0 comments on commit e6e8725

Please sign in to comment.