Skip to content

Commit fe09524

Browse files
committed
docker: Alpine-based image
1 parent 81dd2ae commit fe09524

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
ARG BASE_IMAGE=denoland/deno:2.4.5
1+
ARG BASE_IMAGE=denoland/deno:alpine-2.4.5
22
FROM ${BASE_IMAGE} AS build
33
WORKDIR /src
44

5-
RUN apt-get update && \
6-
apt-get install -y git jq && \
7-
apt-get clean && \
8-
rm -rf /var/lib/apt/lists/*
5+
RUN apk add --no-cache git jq
96

107
ADD . .
118
RUN export VERSION=`git -C . -c safe.directory=* describe --tags --always` && \
129
jq -r ".version|=\"$VERSION\"" deno.json > ._deno.json && \
1310
mv ._deno.json deno.json
1411

15-
RUN ./build.ts
12+
RUN deno run -A ./build.ts
1613

1714
FROM ${BASE_IMAGE} AS min
1815
WORKDIR /src

0 commit comments

Comments
 (0)