# alpine need CGO_ENABLED=0, sqlite need CGO_ENABLED=1 ...
# FROM alpine:3
FROM ubuntu:22.10
ARG APP
ENV LANG C.UTF-8

WORKDIR /opt

COPY target/${APP}/${APP} /opt/app
COPY target/${APP}/config/ /opt/config/
# cp /etc/localtime .
COPY localtime /etc/localtime

RUN chmod +x /opt/app

CMD ["./app", "-conf=config/config.toml"]
