# Use the official Deno Docker image with version 1.32.0
FROM denoland/deno:alpine-1.32.0
# Set the working directory inside the container
WORKDIR /app
# Copy the necessary files to the container
COPY . .
RUN deno cache --lock=deno.lock --lock-write deps.ts
RUN deno cache --lock=deno.lock --lock-write server.js
RUN apk add vim curl
# Allow network access to the application
EXPOSE 8080
# Set the entrypoint command to run the Deno application
CMD ["deno", "run", "--allow-net", "--allow-env", "server.js"]
# Use the official Deno Docker image with version 1.32.0
FROM denoland/deno:alpine-1.32.0
# Set the working directory inside the container
WORKDIR /app
# Copy the necessary files to the container
COPY . .
RUN deno cache --lock=deno.lock --lock-write deps.ts
RUN deno cache --lock=deno.lock --lock-write server.js
RUN apk add vim curl
# Allow network access to the application
EXPOSE 8080
# Set the entrypoint command to run the Deno application
CMD ["deno", "run", "--allow-net", "--allow-env", "server.js"]