Эх сурвалжийг харах

update to version Docker_v1.1.9
change cron schedule to dockerfile

Robert 1 жил өмнө
parent
commit
fd08be54a9
3 өөрчлөгдсөн 6 нэмэгдсэн , 3 устгасан
  1. 4 2
      Dockerfile
  2. 1 0
      schedule
  3. 1 1
      version.txt

+ 4 - 2
Dockerfile

@@ -7,7 +7,6 @@ EXPOSE 54088
 EXPOSE 2222
 WORKDIR /app
 
-
 RUN apt-get update \
     && apt-get install -y --no-install-recommends dialog \
     && apt-get install -y --no-install-recommends openssh-server \
@@ -21,6 +20,9 @@ RUN apt-get update \
 	&& apt-get install -y cron \
 	&& apt-get install -y vim \
 	&& apt-get install -y zip 
+	
+COPY schedule .
+RUN crontab schedule
 
 RUN echo 'net.ipv4.tcp_rmem= 10240 87380 12582912' >> /etc/sysctl.conf
 RUN echo 'net.ipv4.tcp_wmem= 10240 87380 12582912' >> /etc/sysctl.conf
@@ -45,6 +47,6 @@ RUN dotnet publish "EVCB_OCPP.WSServer.csproj" -c Release -o /app/publish /p:Use
 FROM base AS final
 WORKDIR /app
 COPY --from=publish /app/publish .
-COPY entrypoint.sh .
+COPY entrypoint.sh /app/entrypoint.sh
 RUN chmod +x /app/entrypoint.sh
 CMD ["/app/entrypoint.sh"]

+ 1 - 0
schedule

@@ -0,0 +1 @@
+0 18 * * 0 /home/JobScript/backup_logs.sh

+ 1 - 1
version.txt

@@ -1 +1 @@
-Docker_v1.1.8
+Docker_v1.1.9