mirror of
https://github.com/PlayEdu/docker-playedu-light
synced 2025-06-08 01:04:33 +08:00
v1.2.1 && arm支持
This commit is contained in:
parent
a1dfcfa517
commit
a0d358f0ba
11
Dockerfile
11
Dockerfile
@ -1,13 +1,12 @@
|
|||||||
FROM eclipse-temurin:17-alpine
|
FROM eclipse-temurin:17
|
||||||
|
|
||||||
LABEL maintainer="0xtyz <tengyongzhi@meedu.vip>"
|
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 && \
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
|
|
||||||
|
|
||||||
#安装基本组件
|
#安装基本组件
|
||||||
RUN apk update && apk add nginx
|
RUN apt update && apt install -y nginx
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
|
|
||||||
@ -16,7 +15,7 @@ COPY frontend /app/frontend
|
|||||||
COPY backend /app/backend
|
COPY backend /app/backend
|
||||||
COPY h5 /app/h5
|
COPY h5 /app/h5
|
||||||
COPY api /app/api
|
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
|
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_PORT=Redis的端口 \
|
||||||
-e REDIS_PASS=redis的密码 \
|
-e REDIS_PASS=redis的密码 \
|
||||||
-e SA_TOKEN_JWT_SECRET_KEY=随机英文+数字的字符串 \
|
-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