You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
326 B

# 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"]