Skip to content

Commit 0965b9c

Browse files
fix: dockerfile
1 parent 5125858 commit 0965b9c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Dockerfile

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
FROM alpine
22

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-
83
VOLUME /data
94

105
WORKDIR /config

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ services:
163163
image: ghcr.io/itsnotgoodname/smtpbridge:latest
164164
container_name: smtpbridge
165165
environment:
166-
TZ: Etc/UTC
167166
SMTPBRIDGE_CONFIG_YAML: | # Config by embedding YAML
168167
endpoints:
169168
hello_world:
@@ -177,6 +176,8 @@ services:
177176
volumes:
178177
- /path/to/config:/config # Config by creating config.yaml file in /config
179178
- /path/to/data:/data
179+
- /etc/timezone:/etc/timezone:ro
180+
- /etc/localtime:/etc/localtime:ro
180181
restart: unless-stopped
181182
```
182183

@@ -190,6 +191,8 @@ docker run -d \
190191
-p 8080:8080 \
191192
-v /path/to/config:/config \
192193
-v /path/to/data:/data \
194+
-v /etc/timezone:/etc/timezone:ro \
195+
-v /etc/localtime:/etc/localtime:ro \
193196
--restart unless-stopped \
194197
ghcr.io/itsnotgoodname/smtpbridge:latest
195198
```

0 commit comments

Comments
 (0)