xukc commited on
Commit
090b129
·
1 Parent(s): 94b5d39

[fix]Dockerfile tzdata

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -52,12 +52,13 @@ COPY . .
52
  # Compile the C++ program
53
  RUN g++ -std=c++14 -g -o proxyServer hv_utils.cpp tcp_inbound.cpp main.cpp -I include -I include/bolt -lhv -lspdlog
54
 
55
- RUN apt-get update && \
56
- apt-get install -y tzdata
57
 
58
  # 设置时区为 Asia/Shanghai
59
  ENV TZ=Asia/Shanghai
60
 
 
 
61
  EXPOSE 8080
62
  # Run my_program when the container launches
63
  CMD ["./proxyServer"]
 
52
  # Compile the C++ program
53
  RUN g++ -std=c++14 -g -o proxyServer hv_utils.cpp tcp_inbound.cpp main.cpp -I include -I include/bolt -lhv -lspdlog
54
 
55
+ RUN apt-get install -y tzdata
 
56
 
57
  # 设置时区为 Asia/Shanghai
58
  ENV TZ=Asia/Shanghai
59
 
60
+ RUN dpkg-reconfigure --frontend noninteractive tzdata
61
+
62
  EXPOSE 8080
63
  # Run my_program when the container launches
64
  CMD ["./proxyServer"]