mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 23:27:20 +03:00
Update .devcontainer/Dockerfile [skip ci]
This commit is contained in:
parent
04f73108e4
commit
9e0709ba7d
@ -3,7 +3,7 @@
|
||||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
||||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
FROM node:10
|
||||
FROM node:16
|
||||
|
||||
# Configure apt
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
@ -13,26 +13,12 @@ RUN apt-get update \
|
||||
# Verify git and needed tools are installed
|
||||
RUN apt-get install -y git procps
|
||||
|
||||
# Remove outdated yarn from /opt and install via package
|
||||
# so it can be easily updated via apt-get upgrade yarn
|
||||
RUN rm -rf /opt/yarn-* \
|
||||
rm -f /usr/local/bin/yarn \
|
||||
rm -f /usr/local/bin/yarnpkg \
|
||||
&& apt-get install -y curl apt-transport-https lsb-release \
|
||||
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null \
|
||||
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||
&& apt-get update \
|
||||
&& apt-get -y install --no-install-recommends yarn
|
||||
|
||||
# Install tslint and typescript
|
||||
RUN npm install -g tslint typescript
|
||||
|
||||
# Install Tex Live
|
||||
RUN apt-get update && apt-get -y upgrade
|
||||
RUN apt-get -y install --no-install-recommends texlive-base texlive-latex-base texlive-math-extra
|
||||
RUN apt-get -y install --no-install-recommends biber latexmk make
|
||||
RUN apt-get -y install --no-install-recommends texlive-lang-chinese
|
||||
RUN apt-get -y install --no-install-recommends texlive-lang-japanese
|
||||
RUN apt-get update && apt-get -y upgrade \
|
||||
&& apt-get -y install --no-install-recommends texlive-base texlive-latex-base \
|
||||
&& apt-get -y install --no-install-recommends biber latexmk make \
|
||||
&& apt-get -y install --no-install-recommends texlive-lang-chinese \
|
||||
&& apt-get -y install --no-install-recommends texlive-lang-japanese
|
||||
|
||||
# Clean up
|
||||
RUN apt-get autoremove -y \
|
||||
|
@ -1,9 +1,7 @@
|
||||
// See https://aka.ms/vscode-remote/containers for the
|
||||
// documentation about the devcontainer.json format
|
||||
{
|
||||
"name": "Node.js 10 & TypeScript & TeX Live Base",
|
||||
"name": "Node.js 16 & TeX Live Base",
|
||||
"dockerFile": "Dockerfile",
|
||||
"extensions": [
|
||||
"ms-vscode.vscode-typescript-tslint-plugin"
|
||||
]
|
||||
"extensions": []
|
||||
}
|
Loading…
Reference in New Issue
Block a user