File size: 845 Bytes
9eed89d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | # 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"] |