feat: update

This commit is contained in:
liuyx 2024-09-02 15:47:27 +08:00
parent 8978d12a52
commit 6f7382a7d9
2 changed files with 15 additions and 2 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM ubuntu:22.04
RUN echo 'root:root' | chpasswd
RUN printf '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d
RUN apt-get update
RUN apt-get install -y systemd systemd-sysv dbus dbus-user-session
RUN printf "systemctl start systemd-logind" >> /etc/profile
RUN apt-get install wget net-tools
ENTRYPOINT ["/sbin/init"]

View File

@ -2,7 +2,7 @@ services:
u22:
# command: command
container_name: u22
image: ubuntu:22.04
image: ubuntu-systemd:22.04
restart: always
# ports:
# - 3111-3222:3111-3222
@ -10,9 +10,11 @@ services:
# - local
privileged: true
network_mode: host
build:
context: .
volumes:
- ${ROOT_DIR}:/root
- /etc/localtime:/etc/localtime:ro
environment:
APP_ADDRESS: 0.0.0.0:3111
command: ['tail', '-f', '/dev/null']
# command: ['tail', '-f', '/dev/null']