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
385 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/
RUN chmod +x /opt/app \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' > /etc/timezone
CMD ["./app", "-conf=config/config.toml"]