DenoDDeno
Powered by
kushranadaK
Denoβ€’4y agoβ€’
9 replies
kushranada

Fresh in a Docker exiting process

Not sure whats going wrong. Works fine on deno deploy.
But when trying to run it inside a docker container the process exits shortly after starting.

https://github.com/Robspin/deno-fresh-blog

My Dockerfile:

FROM denoland/deno:1.31.1

ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}

WORKDIR /app

COPY . .
RUN deno cache main.ts --import-map=import_map.json

EXPOSE 8000

CMD ["task", "production"]
FROM denoland/deno:1.31.1

ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}

WORKDIR /app

COPY . .
RUN deno cache main.ts --import-map=import_map.json

EXPOSE 8000

CMD ["task", "production"]


Does anyone have any thoughts or similar experience?
GitHub
GitHub - Robspin/deno-fresh-blog
Contribute to Robspin/deno-fresh-blog development by creating an account on GitHub.
GitHub - Robspin/deno-fresh-blog
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cache fresh deps on docker problem
toninhoTtoninho / help
3y ago
Wasm In Fresh
Zel-duhZZel-duh / help
15mo ago
A Question about Tailwind plugins in Fresh
wedmaniacWwedmaniac / help
2y ago
Writing CSS in Fresh
anggoranAanggoran / help
2y ago