generated from Oliver/discord-bot-template
not going to dockerize this
This commit is contained in:
parent
3f3159ba23
commit
da7de4a19e
15
Dockerfile
15
Dockerfile
@ -1,15 +0,0 @@
|
|||||||
# Build the execuitible
|
|
||||||
FROM rustlang/rust:nightly as builder
|
|
||||||
ENV RUSTFLAGS=""
|
|
||||||
|
|
||||||
WORKDIR /bot
|
|
||||||
COPY . .
|
|
||||||
RUN cargo build --release
|
|
||||||
|
|
||||||
# Now make the runtime container
|
|
||||||
FROM debian:bookworm-slim
|
|
||||||
|
|
||||||
COPY --from=builder /bot/target/release/discord_egress /usr/local/bin/discord_egress
|
|
||||||
COPY Cargo.lock /
|
|
||||||
|
|
||||||
CMD ["/usr/local/bin/discord_egress"]
|
|
@ -1,30 +0,0 @@
|
|||||||
version: '3.1'
|
|
||||||
name: discord-egress
|
|
||||||
services:
|
|
||||||
bot:
|
|
||||||
container_name: discord-egress_bot
|
|
||||||
build: https://git.oliveratkinson.net/Oliver/discord-egress.git
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
# These will read from the .env file
|
|
||||||
DISCORD_INTENTS: ${DISCORD_INTENTS}
|
|
||||||
DISCORD_TOKEN: ${DISCORD_TOKEN}
|
|
||||||
DISCORD_ID: ${DISCORD_ID}
|
|
||||||
networks:
|
|
||||||
- external
|
|
||||||
- internal
|
|
||||||
redis:
|
|
||||||
container_name: discord-egress_redis
|
|
||||||
image: redis
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- 6379:6379
|
|
||||||
networks:
|
|
||||||
- internal
|
|
||||||
|
|
||||||
networks:
|
|
||||||
internal:
|
|
||||||
driver: bridge
|
|
||||||
internal: true
|
|
||||||
external:
|
|
||||||
driver: bridge
|
|
Loading…
Reference in New Issue
Block a user