d2a / Dockerfile
fxlinux's picture
Update Dockerfile
40e4ce1 verified
raw
history blame
320 Bytes
FROM denoland/deno:latest
WORKDIR /app
COPY . .
# 清理任何现有的 node_modules 或缓存目录,以防止符号链接冲突
RUN rm -rf node_modules /app/node_modules/.deno
RUN deno cache --node-modules-dir main.ts
EXPOSE 8000
CMD ["deno", "run", "--allow-net", "--allow-env", "--node-modules-dir", "main.ts"]