Skip to content

Commit e67bc10

Browse files
committed
update dockerfile
1 parent ed00752 commit e67bc10

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ RUN set -ex \
4242

4343
WORKDIR /opt/www
4444

45+
COPY . /opt/www
46+
4547
RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer
4648
RUN composer install --no-dev --no-scripts
4749

48-
COPY . /opt/www
4950

5051
EXPOSE 9501
5152

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ https://github.com/Tencent/APIJSON/commits/master
5050
```shell
5151
# 打包镜像
5252
docker build -t hyperf-apijson:v1 .
53-
#启动容器
54-
docker run -dit --name hyperf-apijson hyperf-apijson:v1
53+
#启动容器 映射本地9501端口
54+
docker run -dit --name hyperf-apijson hyperf-apijson:v1 -p 9501:9501
5555
```

0 commit comments

Comments
 (0)