Non-deno-deploy deployments #200
Replies: 4 comments 3 replies
-
Yup, you can run fresh on any server using |
Beta Was this translation helpful? Give feedback.
-
@lucacasonato I can make a |
Beta Was this translation helpful? Give feedback.
-
Alright, I think we can use this as a starting point. FROM denoland/deno:alpine-1.23.2
ARG denoDeploymentId=unique_id
ENV DENO_DEPLOYMENT_ID=$denoDeploymentId
EXPOSE 8000
WORKDIR /app
USER deno
COPY --chown=deno . .
RUN deno cache main.ts
RUN echo ${DENO_DEPLOYMENT_ID}
CMD ["run", "--allow-net","--allow-read","--allow-env","--allow-write","--allow-run","main.ts"] To build, we can run: $ docker build . -t fresh --build-arg denoDeploymentId=123 Do you want to add this to the docs page? https://fresh.deno.dev/docs/getting-started/deploy-to-production |
Beta Was this translation helpful? Give feedback.
-
I'm a Deno noob trying to deploy a Fresh project to Fly with Docker. This is from the official Deno image:
But my Fresh project doesn't have any
Should I just ignore that line or copy Edit: Tried this but the build is failing too.
So I'm guessing the issue is that the official Docker image doesn't have the latest Deno version? Weird because apparently the Docker image was last updated 15 hours ago. |
Beta Was this translation helpful? Give feedback.
-
Is it possible (or planned) to deploy a fresh application to a custom server that isn't part of the deno deploy framework?
Beta Was this translation helpful? Give feedback.
All reactions