This commit is contained in:
Shahrad Elahi 2024-05-29 20:03:02 +03:30
parent 9a6fdaa2a5
commit fd39a92ac7
No known key found for this signature in database
3 changed files with 10 additions and 4 deletions

View File

@ -63,4 +63,4 @@ jobs:
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
platforms: '${{ env.BUILD_PLATFORMS }}'
tags: "${{ env.GHCR_SLUG }}:${{ env.TAG }},${{ env.DOCKERHUB_SLUG }}:${{ env.TAG }}"
tags: '${{ env.GHCR_SLUG }}:${{ env.TAG }},${{ env.DOCKERHUB_SLUG }}:${{ env.TAG }}'

View File

@ -21,6 +21,12 @@
"parser": "svelte",
"plugins": ["prettier-plugin-svelte"]
}
},
{
"files": "Dockerfile",
"options": {
"spaceRedirects": false
}
}
],
"importOrder": ["<THIRD_PARTY_MODULES>", "", "^types$", "^\\$lib/(.*)$", "^@/(.*)$", "", "^[./]"],

View File

@ -4,7 +4,7 @@ ARG NODE_VERSION=20
FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-alpine${ALPINE_VERSION} as node
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone
RUN apk update \
&& apk upgrade \
&& apk add -U --no-cache \
@ -24,7 +24,7 @@ RUN apk update \
make \
&& rm -rf /var/cache/apk/*
SHELL ["/bin/bash", "-c"]
RUN << EOT
RUN <<EOT
set -ex
cd /tmp
@ -75,7 +75,7 @@ RUN mkdir -p /data/ /etc/tor/torrc.d/ /var/log/wireadmin/ \
&& chmod -R 400 /etc/tor/ \
&& touch /var/log/wireadmin/web.log
RUN echo '* * * * * /usr/bin/env logrotate /etc/logrotate.d/rotator' > /etc/crontabs/root
RUN echo '* * * * * /usr/bin/env logrotate /etc/logrotate.d/rotator' >/etc/crontabs/root
# Setup entrypoint
COPY docker-entrypoint.sh /entrypoint.sh