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 file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
platforms: '${{ env.BUILD_PLATFORMS }}' 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", "parser": "svelte",
"plugins": ["prettier-plugin-svelte"] "plugins": ["prettier-plugin-svelte"]
} }
},
{
"files": "Dockerfile",
"options": {
"spaceRedirects": false
}
} }
], ],
"importOrder": ["<THIRD_PARTY_MODULES>", "", "^types$", "^\\$lib/(.*)$", "^@/(.*)$", "", "^[./]"], "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 FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-alpine${ALPINE_VERSION} as node
ENV TZ=UTC 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 \ RUN apk update \
&& apk upgrade \ && apk upgrade \
&& apk add -U --no-cache \ && apk add -U --no-cache \
@ -24,7 +24,7 @@ RUN apk update \
make \ make \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
RUN << EOT RUN <<EOT
set -ex set -ex
cd /tmp cd /tmp
@ -75,7 +75,7 @@ RUN mkdir -p /data/ /etc/tor/torrc.d/ /var/log/wireadmin/ \
&& chmod -R 400 /etc/tor/ \ && chmod -R 400 /etc/tor/ \
&& touch /var/log/wireadmin/web.log && 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 # Setup entrypoint
COPY docker-entrypoint.sh /entrypoint.sh COPY docker-entrypoint.sh /entrypoint.sh