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) {
169
169
170
170
var denoTemplate = strings .TrimSpace (`
171
171
ARG VERSION={{.Version}}
172
- FROM denoland/deno:${VERSION} AS base
173
-
174
- WORKDIR /app
175
- COPY . .
172
+ FROM denoland/deno:${VERSION} as base
176
173
177
174
FROM debian:stable-slim
178
175
WORKDIR /app
@@ -185,12 +182,13 @@ ENV DENO_DIR=.deno_cache
185
182
RUN mkdir -p /app/${DENO_DIR}
186
183
RUN chown -R nonroot:nonroot /app/${DENO_DIR}
187
184
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 . .
190
187
191
188
USER nonroot:nonroot
192
189
193
190
ENV PORT=8080
191
+ EXPOSE ${PORT}
194
192
ARG INSTALL_CMD={{.InstallCMD}}
195
193
RUN if [ ! -z "${INSTALL_CMD}" ]; then sh -c "$INSTALL_CMD"; fi
196
194
You can’t perform that action at this time.
0 commit comments