gitea-sync/Dockerfile

12 lines
263 B
Docker
Raw Normal View History

2024-12-15 21:55:42 +00:00
FROM denoland/deno AS builder
2023-03-09 01:09:52 +00:00
WORKDIR /app
COPY . .
2024-12-15 21:55:42 +00:00
RUN deno install --frozen
RUN deno compile --allow-net --allow-env --no-prompt --output /app/sync ./src/index.ts
2023-03-09 01:09:52 +00:00
2024-12-15 21:55:42 +00:00
FROM debian:stable-slim
WORKDIR /app
COPY --from=builder /app/sync .
ENTRYPOINT [ "/app/sync" ]