10 lines
197 B
Docker
10 lines
197 B
Docker
|
FROM ubuntu:latest
|
||
|
RUN mkdir /app
|
||
|
# 将程序复制到容器中
|
||
|
COPY . /app
|
||
|
RUN chmod -R 777 /app
|
||
|
WORKDIR /app
|
||
|
# 开放 8085 端口
|
||
|
EXPOSE 8085
|
||
|
# 执行脚本
|
||
|
CMD ["./kefu", "server", "-p", "8085"]
|