# Use the official Deno image as the base image FROM denoland/deno:alpine # Set the working directory WORKDIR /app # Copy the main.ts file to the working directory COPY main.ts . # Install dependencies (if any) # RUN deno cache --unstable https://deno.land/x/oak@v12.6.1/mod.ts # Expose the port the app runs on EXPOSE 8000 # Command to run the application CMD ["deno", "run", "--allow-net", "--allow-env", "main.ts"] # Use the official Deno image as the base image FROM denoland/deno:alpine # Set the working directory WORKDIR /app # Copy the main.ts file to the working directory COPY main.ts . # Install dependencies (if any) # RUN deno cache --unstable https://deno.land/x/oak@v12.6.1/mod.ts # Expose the port the app runs on EXPOSE 8000 # Command to run the application CMD ["deno", "run", "--allow-net", "--allow-env", "main.ts"]