Skip to content

Commit

Permalink
Dockerfile: time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
pvtom committed May 27, 2023
1 parent 7cc0f7b commit 60cd36f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Create a config file as described in the [Readme](README.md).
### Start the docker container

```
docker run --rm -v /path/to/your/.config:/opt/rscp2mqtt/.config pvtom/rscp2mqtt:latest
docker run -e TZ=Europe/Berlin --rm -v /path/to/your/.config:/opt/rscp2mqtt/.config pvtom/rscp2mqtt:latest
```

### Start the docker container including InfluxDB support

```
docker run --rm -v /path/to/your/.config:/opt/rscp2mqtt/.config pvtom/rscp2mqtt:latest-with-influxdb
docker run -e TZ=Europe/Berlin --rm -v /path/to/your/.config:/opt/rscp2mqtt/.config pvtom/rscp2mqtt:latest-with-influxdb
```
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN cp config.template /opt/rscp2mqtt/.config
RUN chown -R nobody:99 /opt/rscp2mqtt

FROM alpine
RUN apk --no-cache add libstdc++ mosquitto-libs libcurl
RUN apk --no-cache add tzdata libstdc++ mosquitto-libs libcurl
COPY --from=0 /opt/rscp2mqtt /opt/rscp2mqtt

# Switch to use a non-root user from here on
Expand Down

0 comments on commit 60cd36f

Please sign in to comment.