File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine
2
2
3
- ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
4
-
5
- # Add support for TZ environment variable
6
- RUN apk add --no-cache tzdata
7
-
8
3
VOLUME /data
9
4
10
5
WORKDIR /config
Original file line number Diff line number Diff line change @@ -163,7 +163,6 @@ services:
163
163
image: ghcr.io/itsnotgoodname/smtpbridge:latest
164
164
container_name: smtpbridge
165
165
environment:
166
- TZ: Etc/UTC
167
166
SMTPBRIDGE_CONFIG_YAML: | # Config by embedding YAML
168
167
endpoints:
169
168
hello_world:
@@ -177,6 +176,8 @@ services:
177
176
volumes:
178
177
- /path/to/config:/config # Config by creating config.yaml file in /config
179
178
- /path/to/data:/data
179
+ - /etc/timezone:/etc/timezone:ro
180
+ - /etc/localtime:/etc/localtime:ro
180
181
restart: unless-stopped
181
182
` ` `
182
183
@@ -190,6 +191,8 @@ docker run -d \
190
191
-p 8080:8080 \
191
192
-v /path/to/config:/config \
192
193
-v /path/to/data:/data \
194
+ -v /etc/timezone:/etc/timezone:ro \
195
+ -v /etc/localtime:/etc/localtime:ro \
193
196
--restart unless-stopped \
194
197
ghcr.io/itsnotgoodname/smtpbridge:latest
195
198
` ` `
You can’t perform that action at this time.
0 commit comments