fix docker configuration
This commit is contained in:
parent
04e9c77474
commit
77653eb233
4 changed files with 7 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
FROM ubuntu:22.04 AS base
|
||||
LABEL maintainer="Jun Kurihara"
|
||||
|
||||
SHELL ["/bin/sh", "-x", "-c"]
|
||||
ENV SERIAL 2
|
||||
|
|
@ -26,13 +27,13 @@ RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS &&
|
|||
|
||||
########################################
|
||||
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 && \
|
||||
apt-get install -qy --no-install-recommends $RUNTIME_DEPS && \
|
||||
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 &&\
|
||||
mkdir -p /opt/rpxy/sbin &&\
|
||||
mkdir -p /var/log/rpxy && \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
LOG_FILE=/var/log/rpxy/rpxy.log
|
||||
|
||||
if [ -z ${LOG_TO_FILE} ]; then
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
|
||||
LOG_FILE=/var/log/rpxy/rpxy.log
|
||||
CONFIG_FILE=/etc/rpxy.toml
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@ services:
|
|||
tty: false
|
||||
privileged: true
|
||||
volumes:
|
||||
- ./localhost.crt:/certs/localhost.crt:ro
|
||||
- ./localhost.key:/certs/localhost.key:ro
|
||||
- ./example-certs/server.crt:/certs/server.crt:ro
|
||||
- ./example-certs/server.key:/certs/server.key:ro
|
||||
- ./config-example.toml:/etc/rpxy.toml:ro
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue