feat: update
This commit is contained in:
parent
8978d12a52
commit
6f7382a7d9
11
Dockerfile
Normal file
11
Dockerfile
Normal 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"]
|
@ -2,7 +2,7 @@ services:
|
|||||||
u22:
|
u22:
|
||||||
# command: command
|
# command: command
|
||||||
container_name: u22
|
container_name: u22
|
||||||
image: ubuntu:22.04
|
image: ubuntu-systemd:22.04
|
||||||
restart: always
|
restart: always
|
||||||
# ports:
|
# ports:
|
||||||
# - 3111-3222:3111-3222
|
# - 3111-3222:3111-3222
|
||||||
@ -10,9 +10,11 @@ services:
|
|||||||
# - local
|
# - local
|
||||||
privileged: true
|
privileged: true
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
volumes:
|
volumes:
|
||||||
- ${ROOT_DIR}:/root
|
- ${ROOT_DIR}:/root
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
APP_ADDRESS: 0.0.0.0:3111
|
APP_ADDRESS: 0.0.0.0:3111
|
||||||
command: ['tail', '-f', '/dev/null']
|
# command: ['tail', '-f', '/dev/null']
|
||||||
|
Loading…
Reference in New Issue
Block a user