Skip to content

Commit 871b507

Browse files
committed
fix: fix deno bin version
1 parent 9801c16 commit 871b507

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

runtime/deno.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,7 @@ func (d *Deno) GenerateDockerfile(path string) ([]byte, error) {
169169

170170
var denoTemplate = strings.TrimSpace(`
171171
ARG VERSION={{.Version}}
172-
FROM denoland/deno:${VERSION} AS base
173-
174-
WORKDIR /app
175-
COPY . .
172+
FROM denoland/deno:${VERSION} as base
176173
177174
FROM debian:stable-slim
178175
WORKDIR /app
@@ -185,12 +182,13 @@ ENV DENO_DIR=.deno_cache
185182
RUN mkdir -p /app/${DENO_DIR}
186183
RUN chown -R nonroot:nonroot /app/${DENO_DIR}
187184
188-
COPY --chown=nonroot:nonroot --from=denoland/deno:bin-1.43.3 /deno /usr/local/bin/deno
189-
COPY --chown=nonroot:nonroot --from=base /app .
185+
COPY --chown=nonroot:nonroot --from=base /usr/bin/deno /usr/local/bin/deno
186+
COPY --chown=nonroot:nonroot . .
190187
191188
USER nonroot:nonroot
192189
193190
ENV PORT=8080
191+
EXPOSE ${PORT}
194192
ARG INSTALL_CMD={{.InstallCMD}}
195193
RUN if [ ! -z "${INSTALL_CMD}" ]; then sh -c "$INSTALL_CMD"; fi
196194

0 commit comments

Comments
 (0)