aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 44b25590f94e8c9f70a1983c584ed02d740fc802 (plain)
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
FROM alpine:latest AS builder

WORKDIR /app

# Install deps
RUN apk add --no-cache chicken
COPY requirements.list ./requirements.list
RUN chicken-install -from-list requirements.list

# Build app
COPY app.scm ./app.scm
RUN csc -static -o md-site-gen app.scm
RUN chmod +x md-site-gen

FROM alpine:latest AS runner

WORKDIR /app

# Install runtime deps
RUN apk add --no-cache highlight inotify-tools

# Run app
COPY --from=builder /app/md-site-gen /usr/bin/md-site-gen

EXPOSE 8080
CMD ["md-site-gen"]