-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (19 loc) · 841 Bytes
/
Dockerfile
File metadata and controls
29 lines (19 loc) · 841 Bytes
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
FROM alpine:3.13
LABEL describe="tushan-mtab"
LABEL author ="tushan<admin@mcecy.com>"
WORKDIR /
COPY ./docker/install.sh /install.sh
COPY ./docker/start.sh /start.sh
COPY ./docker/nginx.conf /nginx.conf
COPY ./docker/default.conf /default.conf
COPY ./docker/www.conf /www.conf
COPY ./docker/redis.conf /opt/redis.conf
COPY ./docker/php.ini /php.ini
COPY . /www
#ENV SYSTEM_TYPE='Synology'
RUN chmod +x /install.sh && chmod +x /start.sh && /bin/sh /install.sh && rm /install.sh
EXPOSE 80
CMD ["/bin/bash","/start.sh"]
#构建全平台 docker buildx create --name mybuilder --driver docker-container --use
#构建全平台 docker buildx build --no-cache --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/amd64/v3 -t itushan/mtab --push .
#构建本地镜像 docker build -t itushan/mtab .