Removed dependencies and simplified dockerfile
This commit is contained in:
parent
041130dc20
commit
41b27fcfd7
|
@ -22,8 +22,7 @@ RUN useradd -u 10001 api
|
|||
FROM scratch as runner
|
||||
WORKDIR /app
|
||||
COPY --from=user /etc/passwd /etc/passwd
|
||||
COPY --from=builder /app/bin/api /bin/api
|
||||
COPY --from=builder /app/bin/micrate /bin/micrate
|
||||
COPY --from=builder /app/bin /bin
|
||||
COPY ./db ./db
|
||||
USER api
|
||||
EXPOSE 80
|
||||
|
|
|
@ -12,10 +12,6 @@ shards:
|
|||
git: https://github.com/mrrooijen/commander.git
|
||||
version: 0.4.0
|
||||
|
||||
compiled_license:
|
||||
git: https://github.com/grimmigerfuchs/compiled_license.git
|
||||
version: 2.0.0
|
||||
|
||||
crystal-argon2:
|
||||
git: https://github.com/axentro/crystal-argon2.git
|
||||
version: 0.1.3
|
||||
|
@ -60,18 +56,10 @@ shards:
|
|||
git: https://github.com/will/crystal-pg.git
|
||||
version: 0.24.0
|
||||
|
||||
pretty:
|
||||
git: https://github.com/maiha/pretty.cr.git
|
||||
version: 1.1.1
|
||||
|
||||
seg:
|
||||
git: https://github.com/soveran/seg.git
|
||||
version: 0.1.0+git.commit.7f1cee94fb7ed7a2ba15f1388cbaede72a85eef9
|
||||
|
||||
shard:
|
||||
git: https://github.com/maiha/shard.cr.git
|
||||
version: 0.3.1
|
||||
|
||||
toro:
|
||||
git: https://github.com/soveran/toro.git
|
||||
version: 0.4.3
|
||||
|
|
|
@ -27,14 +27,10 @@ dependencies:
|
|||
CrystalEmail:
|
||||
git: https://git.sceptique.eu/Sceptique/CrystalEmail.git
|
||||
branch: master
|
||||
shard:
|
||||
github: maiha/shard.cr
|
||||
toro:
|
||||
github: soveran/toro
|
||||
commander:
|
||||
github: mrrooijen/commander
|
||||
compiled_license:
|
||||
github: grimmigerFuchs/compiled_license
|
||||
fancyline:
|
||||
github: Papierkorb/fancyline
|
||||
micrate:
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
require "shard"
|
||||
|
||||
module API
|
||||
AUTHORS = Shard.authors
|
||||
end
|
|
@ -1,5 +1,4 @@
|
|||
require "commander"
|
||||
require "compiled_license"
|
||||
require "fancyline"
|
||||
|
||||
require "./db"
|
||||
|
@ -32,33 +31,6 @@ module API
|
|||
API.run
|
||||
end
|
||||
|
||||
cmd.commands.add do |c|
|
||||
c.use = "version"
|
||||
c.long = "Prints the current version"
|
||||
|
||||
c.run do
|
||||
puts API::VERSION
|
||||
end
|
||||
end
|
||||
|
||||
cmd.commands.add do |c|
|
||||
c.use = "authors"
|
||||
c.long = "Prints the authors"
|
||||
|
||||
c.run do
|
||||
puts API::AUTHORS.join(",\n")
|
||||
end
|
||||
end
|
||||
|
||||
cmd.commands.add do |c|
|
||||
c.use = "licenses"
|
||||
c.long = "Prints the licenses of libraries used"
|
||||
|
||||
c.run do
|
||||
puts CompiledLicense::LICENSES
|
||||
end
|
||||
end
|
||||
|
||||
cmd.commands.add do |c|
|
||||
c.use = "seed"
|
||||
c.long = "Seeds the database with required data"
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
require "shard"
|
||||
|
||||
module API
|
||||
VERSION = Shard.version
|
||||
end
|
Loading…
Reference in a new issue