Browse Source

新增arm64环境Dockerfile

pull/48/head
745719408@qq.com 2 years ago
parent
commit
0e2db428ac
  1. 10
      flask-consul/Dockerfile-arm64
  2. 9
      vue-consul/Dockerfile-arm64

10
flask-consul/Dockerfile-arm64

@ -0,0 +1,10 @@
FROM arm64v8/python:3.10.9
ADD sources.list /etc/apt
ADD . /flask
WORKDIR /flask
RUN apt update -y && apt upgrade -y && apt install build-essential manpages-dev -y \
&& rm -rf /var/cache/apt/* \
&& pip3 install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple --no-cache-dir\
&& pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple --no-cache-dir
EXPOSE 2026
CMD ["python3","./manager.py"]

9
vue-consul/Dockerfile-arm64

@ -0,0 +1,9 @@
FROM node:14-buster AS builder
ADD . /vue
WORKDIR /vue
RUN npm install --registry=https://registry.npm.taobao.org && npm run build:prod
FROM llody/nginx:1.22.0-base
WORKDIR /www
COPY --from=builder /vue/http-ops.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /vue/dist dist/
Loading…
Cancel
Save