fix docker configuration

This commit is contained in:
Jun Kurihara 2023-01-19 22:04:56 +09:00
commit 77653eb233
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
4 changed files with 7 additions and 6 deletions

View file

@ -1,4 +1,5 @@
FROM ubuntu:22.04 AS base FROM ubuntu:22.04 AS base
LABEL maintainer="Jun Kurihara"
SHELL ["/bin/sh", "-x", "-c"] SHELL ["/bin/sh", "-x", "-c"]
ENV SERIAL 2 ENV SERIAL 2
@ -26,13 +27,13 @@ RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS &&
######################################## ########################################
FROM base AS runner FROM base AS runner
LABEL maintainer="Jun Kurihara"
ENV RUNTIME_DEPS bash logrotate ca-certificates ENV RUNTIME_DEPS logrotate ca-certificates
RUN apt-get update && \ RUN apt-get update && \
apt-get install -qy --no-install-recommends $RUNTIME_DEPS && \ apt-get install -qy --no-install-recommends $RUNTIME_DEPS && \
apt-get -qy clean && \ apt-get -qy clean && \
apt-get -qy autoremove &&\
rm -fr /tmp/* /var/tmp/* /var/cache/apt/* /var/lib/apt/lists/* /var/log/apt/* /var/log/*.log &&\ rm -fr /tmp/* /var/tmp/* /var/cache/apt/* /var/lib/apt/lists/* /var/log/apt/* /var/log/*.log &&\
mkdir -p /opt/rpxy/sbin &&\ mkdir -p /opt/rpxy/sbin &&\
mkdir -p /var/log/rpxy && \ mkdir -p /var/log/rpxy && \

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env sh
LOG_FILE=/var/log/rpxy/rpxy.log LOG_FILE=/var/log/rpxy/rpxy.log
if [ -z ${LOG_TO_FILE} ]; then if [ -z ${LOG_TO_FILE} ]; then

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env sh
LOG_FILE=/var/log/rpxy/rpxy.log LOG_FILE=/var/log/rpxy/rpxy.log
CONFIG_FILE=/etc/rpxy.toml CONFIG_FILE=/etc/rpxy.toml

View file

@ -15,6 +15,6 @@ services:
tty: false tty: false
privileged: true privileged: true
volumes: volumes:
- ./localhost.crt:/certs/localhost.crt:ro - ./example-certs/server.crt:/certs/server.crt:ro
- ./localhost.key:/certs/localhost.key:ro - ./example-certs/server.key:/certs/server.key:ro
- ./config-example.toml:/etc/rpxy.toml:ro - ./config-example.toml:/etc/rpxy.toml:ro