22 lines
1.2 KiB
Docker
22 lines
1.2 KiB
Docker
FROM ubuntu:22.04
|
|
LABEL maintainer 168062547@qq.com
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list && \
|
|
sed -i "s@http://.*security.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list && \
|
|
apt-get update
|
|
|
|
RUN apt-get install -y --no-install-recommends vim curl software-properties-common gnupg ca-certificates
|
|
RUN mkdir -p /etc/apt/keyrings
|
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
|
ENV NODE_MAJOR=20
|
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
|
|
|
RUN apt-get update && apt-get install nodejs
|
|
ENV LANG C.UTF-8
|
|
|
|
|
|
# docker build -f docusaurus.dockerfile -t docusaurus .
|
|
# docker run -it --rm -v $(pwd):/AmassLife docusaurus:latest bash
|
|
# docker login --username=168062547@qq.com registry.cn-shenzhen.aliyuncs.com
|
|
# docker tag docusaurus registry.cn-shenzhen.aliyuncs.com/amass_toolset/develop:docusaurus
|
|
# docker push registry.cn-shenzhen.aliyuncs.com/amass_toolset/develop:docusaurus |