diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b21ef84 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:latest + +RUN sed -i 's@dl-cdn.alpinelinux.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apk/repositories \ + && apk add --no-cache nginx +CMD ["nginx", "-g", "daemon off;"] diff --git a/compose.yaml b/compose.yaml index 4d388d8..a0b4f75 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,10 +1,10 @@ name: surl services: - surl-front: - image: nginx:1.27.0-alpine - container_name: surl-front + front: + build: . + container_name: front ports: - - 127.0.0.1:80:11451 + - "127.0.0.1:80:11451" volumes: - "./dist:/usr/share/nginx/html:ro" - "./nginx.conf:/etc/nginx/nginx.conf"