more container stuff
This commit is contained in:
parent
4ab79e2893
commit
e6a0d3414d
@ -1,14 +1,28 @@
|
||||
FROM ruby:3.1.2
|
||||
FROM ruby:3.1.2-alpine
|
||||
|
||||
RUN apk upgrade --update && \
|
||||
apk add --no-cache \
|
||||
bash \
|
||||
ca-certificates \
|
||||
curl \
|
||||
less \
|
||||
libstdc++ \
|
||||
libressl-dev \
|
||||
g++ \
|
||||
tzdata \
|
||||
make \
|
||||
shared-mime-info \
|
||||
zlib-dev && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
WORKDIR /srv/
|
||||
RUN mkdir /srv/stevefolder
|
||||
WORKDIR /srv/stevefolder
|
||||
|
||||
COPY Gemfile Gemfile
|
||||
COPY Gemfile.lock Gemfile.lock
|
||||
COPY . .
|
||||
RUN mkdir spool
|
||||
|
||||
COPY Gemfile Gemfile.lock ./
|
||||
RUN bundle install
|
||||
|
||||
COPY main.rb folder.rb ./
|
||||
RUN mkdir spool
|
||||
|
||||
|
||||
ENTRYPOINT ["ruby", "main.rb"]
|
||||
|
2
main.rb
2
main.rb
@ -20,7 +20,7 @@ if prefix == ""
|
||||
end
|
||||
logger.info("starting with prefix #{prefix}")
|
||||
|
||||
config_obj = YAML::load_file( '#{prefix}config.yaml' )
|
||||
config_obj = YAML::load_file( "#{prefix}config.yaml" )
|
||||
logger.info("loaded config")
|
||||
bot = Discordrb::Commands::CommandBot.new token: config_obj["bot_token"], prefix: "!folder"
|
||||
folder = Folder.new
|
||||
|
Loading…
Reference in New Issue
Block a user