Compare commits
No commits in common. 'd746fe5a7b4cb7782cfae92b881798f330da5533' and '7dd506c62481627390e3d53903c0039e4696a350' have entirely different histories.
d746fe5a7b
...
7dd506c624
@ -1,13 +0,0 @@
|
||||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
# 更新安装源
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
|
||||
RUN apk update && apk add --no-cache bash supervisor
|
||||
RUN adduser -S -D -H -h /app -s /sbin/nologin -u 1000 app
|
||||
|
||||
RUN chown -R app /app
|
||||
ADD api2gpt-mid /app/server
|
||||
ADD work.ini /etc/supervisor.d/
|
||||
|
||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
||||
@ -1,14 +0,0 @@
|
||||
version: "3"
|
||||
services:
|
||||
server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: api2gpt-mid
|
||||
environment:
|
||||
# 时区上海
|
||||
TZ: Asia/Shanghai
|
||||
privileged: true
|
||||
restart: always
|
||||
ports:
|
||||
- 8082:8080
|
||||
@ -1,11 +0,0 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
loglevel=debug
|
||||
|
||||
[program:api2gpt-mid]
|
||||
priority=1
|
||||
directory=/app/server/
|
||||
command=/app/server/api2gpt-mid
|
||||
user=app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
Loading…
Reference in new issue