mirror of
https://github.com/PlayEdu/docker-playedu-light
synced 2025-06-07 04:54:09 +08:00
v1.2.1 && arm支持
This commit is contained in:
parent
a1dfcfa517
commit
a0d358f0ba
15
Dockerfile
15
Dockerfile
@ -1,22 +1,21 @@
|
||||
FROM eclipse-temurin:17-alpine
|
||||
FROM eclipse-temurin:17
|
||||
|
||||
LABEL maintainer="0xtyz <tengyongzhi@meedu.vip>"
|
||||
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories && \
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories && \
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
|
||||
#使用东八区时间环境
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
# 安装基本组件
|
||||
RUN apk update && apk add nginx
|
||||
#安装基本组件
|
||||
RUN apt update && apt install -y nginx
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
# Copy代码
|
||||
#Copy代码
|
||||
COPY frontend /app/frontend
|
||||
COPY backend /app/backend
|
||||
COPY h5 /app/h5
|
||||
COPY api /app/api
|
||||
COPY conf/nginx.conf /etc/nginx/http.d/default.conf
|
||||
COPY conf/nginx.conf /etc/nginx/sites-enabled/default
|
||||
|
||||
RUN chmod +x /app/api/start.sh
|
||||
|
||||
|
@ -17,7 +17,7 @@ docker run -d -p 9700:80 -p 9800:9800 -p 9801:9801 -p 9900:9900 --name playedu-l
|
||||
-e REDIS_PORT=Redis的端口 \
|
||||
-e REDIS_PASS=redis的密码 \
|
||||
-e SA_TOKEN_JWT_SECRET_KEY=随机英文+数字的字符串 \
|
||||
registry.cn-hangzhou.aliyuncs.com/playedu/light:1.2
|
||||
registry.cn-hangzhou.aliyuncs.com/playedu/light:1.2.1
|
||||
```
|
||||
|
||||
跑起来之后,可以通过下面的链接访问前后台:
|
||||
|
Loading…
x
Reference in New Issue
Block a user