beancount-gs/dockerfile

23 lines
543 B
Plaintext
Raw Normal View History

2021-12-05 05:10:59 +00:00
# syntax=docker/dockerfile:1
FROM golang:1.17.3 AS builder
2021-12-05 05:10:59 +00:00
ENV GO111MODULE=on \
GOPROXY=https://goproxy.cn,direct \
GIN_MODE=release \
PORT=80
WORKDIR /builder
2021-12-05 05:10:59 +00:00
COPY . .
COPY public/icons ./public/default_icons
RUN go build .
FROM python:latest
RUN pip3 install beancount -i https://pypi.tuna.tsinghua.edu.cn/simple
WORKDIR /app
COPY --from=builder ./builder/public ./public
COPY --from=builder ./builder/config ./config
COPY --from=builder ./builder/template ./template
COPY --from=builder ./builder/beancount-gs* ./
2021-12-05 05:10:59 +00:00
EXPOSE 80