Fix up Dockerfile.

This commit is contained in:
Naoki Kosaka 2021-06-18 23:30:41 +09:00
parent aafac21664
commit d67240be36
2 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@ COPY . /Activity-Relay
RUN mkdir -p /rootfs/usr/bin && \
apk add -U --no-cache git && \
go build -o /rootfs/usr/bin/relay -ldflags "-X main.version=$(git describe --tags HEAD)" . && \
go build -o /rootfs/usr/bin/worker -ldflags "-X main.version=$(git describe --tags HEAD)" ./worker && \
go build -o /rootfs/usr/bin/ar-cli -ldflags "-X main.version=$(git describe --tags HEAD)" ./cli
FROM alpine

View File

@ -13,7 +13,7 @@ services:
image: yukimochi/activity-relay
restart: always
init: true
command: worker
command: relay worker
environment:
- "ACTOR_PEM=/actor.pem"
- "RELAY_DOMAIN=relay.toot.yukimochi.jp"