This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create
docker/railway
and docker/render
dockerfiles
- Loading branch information
Showing
50 changed files
with
679 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ import ( | |
) | ||
|
||
var opts = options.InitOptions{ | ||
CopyFile: false, | ||
NoRepo: false, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM scratch | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
### Replace `scratch` with the linux distribution you want to use ### | ||
### Example: FROM alpine:latest ### | ||
### Or with with the bot language with the tag: ### | ||
### Example: FROM ruby:alpine ### | ||
|
||
### Add here the packages you want to use ### | ||
### Example: ENV PACKAGES "Packages to add" ### | ||
### RUN apk update && apk add --no-cache --virtual ${PACKAGES} ### | ||
|
||
### Copy here all the files you want to use ### | ||
### Example: COPY . . ### | ||
|
||
### Add here the build command to build your bot ### | ||
### Example: RUN cargo build --release ### | ||
|
||
### Last step: Add here the entrypoint command to run your bot ### | ||
### Example: ENTRYPOINT ["python3", "./src/main.py"] ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM jarredsumner/bun:edge | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
ENV PATH="/root/.bun/bin:$PATH" | ||
|
||
RUN bun i | ||
|
||
ENTRYPOINT [ "bun", "src/main.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM botwayorg/concord | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
RUN gcc src/main.c -o bot -pthread -ldiscord -lcurl | ||
|
||
ENTRYPOINT [ "./bot" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM rust:alpine | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
ENV PACKAGES "build-dependencies build-base openssl openssl-dev musl-dev libressl-dev gcc git lld clang libsodium ffmpeg opus autoconf automake libtool m4 youtube-dl binutils zlib-dev boost boost-dev" | ||
|
||
RUN apk update && \ | ||
apk add --no-cache --virtual ${PACKAGES} | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
RUN cargo build --release --bin bot | ||
|
||
ENTRYPOINT ["./target/release/bot"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM brainboxdotcc/dpp:latest | ||
|
||
COPY .botway.yaml . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
WORKDIR /usr/src/{{.BotName}} | ||
|
||
COPY . . | ||
|
||
WORKDIR /usr/src/{{.BotName}}/build | ||
|
||
RUN cmake .. | ||
RUN make -j$(nproc) | ||
|
||
ENTRYPOINT [ "/usr/src/{{.BotName}}/build/{{.BotName}}" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM reo7sp/tgbot-cpp:latest | ||
|
||
COPY .botway.yaml . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y libopus-dev opus-tools git gcc cmake make libffi-dev python-dev ffmpeg build-essential autoconf automake libtool m4 youtube-dl | ||
|
||
RUN git clone https://github.com/nlohmann/json && \ | ||
cd json && \ | ||
cmake . && \ | ||
make -j && \ | ||
make install | ||
|
||
WORKDIR /usr/src/{{.BotName}} | ||
|
||
COPY . . | ||
|
||
WORKDIR /usr/src/{{.BotName}}/build | ||
|
||
RUN cmake .. | ||
RUN make -j$(nproc) | ||
|
||
ENTRYPOINT [ "/usr/src/{{.BotName}}/build/{{.BotName}}" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM crystallang/crystal:nightly-alpine | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
ENV PACKAGES "build-dependencies build-base gcc git libsodium opus ffmpeg binutils openssl-dev zlib-dev boost boost-dev" | ||
|
||
RUN apk update && \ | ||
apk add --no-cache --virtual ${PACKAGES} | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
RUN shards install | ||
RUN shards build --static --no-debug --release --production -v | ||
|
||
ENTRYPOINT [ "./bin/{{.BotName}}" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM scratch AS bw | ||
|
||
COPY .botway.yaml . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build | ||
|
||
WORKDIR /source | ||
|
||
COPY *.csproj . | ||
|
||
RUN dotnet restore -r linux-musl-x64 | ||
|
||
COPY . . | ||
|
||
RUN dotnet publish -c release -o /app -r linux-musl-x64 --self-contained false --no-restore | ||
|
||
FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine-amd64 | ||
|
||
ENV \ | ||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ | ||
LC_ALL=en_US.UTF-8 \ | ||
LANG=en_US.UTF-8 \ | ||
PACKAGES="build-dependencies build-base gcc git libsodium opus ffmpeg icu-libs binutils openssl-dev zlib-dev boost boost-dev" | ||
|
||
RUN apk update && \ | ||
apk add --no-cache --virtual ${PACKAGES} | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
COPY --from=build /app /app | ||
|
||
COPY --from=bw /root/.botway /root/.botway | ||
|
||
COPY . . | ||
|
||
ENTRYPOINT ["./app/{{.BotName}}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM dart:stable | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
RUN dart pub get | ||
|
||
RUN dart compile exe src/main.dart -o bot | ||
|
||
ENTRYPOINT ["./bot"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM denoland/deno:alpine | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
ENV PACKAGES "build-dependencies build-base gcc git ffmpeg curl binutils openssl-dev zlib-dev boost boost-dev" | ||
|
||
RUN apk update && \ | ||
apk add --no-cache --virtual ${PACKAGES} | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
RUN deno cache deps.ts | ||
|
||
ENTRYPOINT ["deno", "run", "--allow-all", "main.ts"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM botwayorg/fleet-rs:latest | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
RUN apk update | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
RUN fleet build --release --bin bot | ||
|
||
ENTRYPOINT ["./target/release/bot"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM golang:alpine | ||
|
||
COPY .botway.yaml . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
ENV PACKAGES "build-dependencies build-base gcc git binutils openssl-dev zlib-dev boost boost-dev" | ||
|
||
RUN apk update && \ | ||
apk add --no-cache --virtual ${PACKAGES} | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
WORKDIR /app/ | ||
|
||
COPY . . | ||
|
||
RUN go mod tidy | ||
RUN go build -o bot ./src/main.go | ||
|
||
ENTRYPOINT ["./bot"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM gradle:alpine | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
ENV PACKAGES "build-dependencies build-base openssl openssl-dev musl-dev libressl-dev gcc git libsodium opus ffmpeg m4 binutils zlib-dev boost boost-dev" | ||
|
||
RUN apk update && \ | ||
apk add --no-cache --virtual ${PACKAGES} | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
RUN gradle wrapper | ||
|
||
RUN gradle build --no-daemon | ||
|
||
RUN ./gradlew | ||
|
||
ENTRYPOINT [ "./gradlew", "run" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM nimlang/nim:alpine | ||
|
||
COPY . . | ||
|
||
ENV BOTWAY-DIR /root/.botway | ||
|
||
RUN mkdir ${BOTWAY-DIR} | ||
|
||
COPY botway.json ${BOTWAY-DIR} | ||
|
||
ENV PACKAGES "build-dependencies build-base openssl openssl-dev musl-dev libressl-dev gcc git lld clang libsodium ffmpeg opus autoconf automake libtool m4 youtube-dl binutils zlib-dev boost boost-dev" | ||
|
||
RUN apk update && \ | ||
apk add --no-cache --virtual ${PACKAGES} | ||
|
||
# To add more packages | ||
# RUN apk add PACKAGE_NAME | ||
|
||
RUN nimble install -y | ||
|
||
RUN nim c -d:ssl ./src/main.nim | ||
|
||
ENTRYPOINT [ "./src/main" ] |
Oops, something went wrong.