File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/devcontainers/base:jammy
22
33# Combine installation steps for Nginx and Go to avoid repetitive update/cleanup commands
44RUN apt-get update && \
5- apt-get install -y --no-install-recommends curl gnupg2 ca-certificates lsb-release ubuntu-keyring jq && \
5+ apt-get install -y --no-install-recommends curl gnupg2 ca-certificates lsb-release ubuntu-keyring jq cloc && \
66 \
77 # Configure the Nginx repository
88 curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor > /usr/share/keyrings/nginx-archive-keyring.gpg && \
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ func cleanExpiredAuthToken() {
7070 logger .Debug ("clean expired auth tokens" )
7171 q := query .AuthToken
7272 _ , _ = q .Where (q .ExpiredAt .Lt (time .Now ().Unix ())).Delete ()
73- }), gocron .WithSingletonMode (gocron .LimitModeWait ))
73+ }), gocron .WithSingletonMode (gocron .LimitModeWait ), gocron . JobOption ( gocron . WithStartImmediately ()) )
7474
7575 if err != nil {
7676 logger .Fatalf ("CleanExpiredAuthToken Err: %v\n " , err )
You can’t perform that action at this time.
0 commit comments