File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,7 @@ func (d *Deno) GenerateDockerfile(path string) ([]byte, error) {
169169
170170var denoTemplate = strings .TrimSpace (`
171171ARG VERSION={{.Version}}
172- FROM denoland/deno:${VERSION} AS base
173-
174- WORKDIR /app
175- COPY . .
172+ FROM denoland/deno:${VERSION} as base
176173
177174FROM debian:stable-slim
178175WORKDIR /app
@@ -185,12 +182,13 @@ ENV DENO_DIR=.deno_cache
185182RUN mkdir -p /app/${DENO_DIR}
186183RUN 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
191188USER nonroot:nonroot
192189
193190ENV PORT=8080
191+ EXPOSE ${PORT}
194192ARG INSTALL_CMD={{.InstallCMD}}
195193RUN if [ ! -z "${INSTALL_CMD}" ]; then sh -c "$INSTALL_CMD"; fi
196194
You can’t perform that action at this time.
0 commit comments