Skip to content

Commit

Permalink
Use digest for docker dependencies (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev authored Jan 5, 2025
1 parent 5058bde commit e74744d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

FROM node:22.12.0-alpine as builder
FROM docker.io/node:22.12.0-alpine@sha256:6e80991f69cc7722c561e5d14d5e72ab47c0d6b6cfb3ae50fb9cf9a7b30fdf97 as builder

COPY package.json package-lock.json ./
RUN npm install -g npm && npm install
COPY . .
RUN npx tsx gen_caddy.ts < Caddyfile.base > Caddyfile

FROM docker.io/caddy:2.8.4-alpine
FROM docker.io/caddy:2.8.4-alpine@sha256:e97e0e3f8f51be708a9d5fadbbd75e3398c22fc0eecd4b26d48561e3f7daa9eb

LABEL org.opencontainers.image.authors="Hong Xu <[email protected]>"
LABEL org.opencontainers.image.title="Delpa Redirection Server"
Expand Down

0 comments on commit e74744d

Please sign in to comment.