-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_base
29 lines (19 loc) · 1.62 KB
/
Dockerfile_base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 使用 uname -u 查看系统架构 (需要保证 docker 架构和云服务器架构一致)
# docker build -f Dockerfile_base -t ubuntu_with_node_20 --progress plain .
FROM --platform=linux/amd64 ubuntu:22.04 AS base
WORKDIR /app
RUN echo deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse > /etc/apt/sources.list
RUN echo deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse >> /etc/apt/sources.list
RUN echo deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse >> /etc/apt/sources.list
RUN echo deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse >> /etc/apt/sources.list
RUN echo deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse >> /etc/apt/sources.list
RUN echo deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse >> /etc/apt/sources.list
RUN echo deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse >> /etc/apt/sources.list
RUN echo deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse >> /etc/apt/sources.list
RUN echo deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse >> /etc/apt/sources.list
RUN echo deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y curl sudo zip
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
RUN sudo apt-get install -y nodejs
ENV HUSKY 0
CMD [ "node" ]