This repository has been archived on 2022-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
2020-07-18 15:24:06 -05:00
|
|
|
from alpine:latest
|
|
|
|
|
2020-07-19 10:04:08 -05:00
|
|
|
run apk add wget gnupg sqlite unzip build-base perl perl-dev perl-app-cpanminus
|
2020-07-20 22:13:03 -05:00
|
|
|
run cpanm --notest IPC::Run DBD::SQLite Net::DNS::Resolver Crypt::Eksblowfish::Bcrypt JSON URI::Escape HTML::Entities Net::Server HTTP::Server::Simple Crypt::Random
|
2020-07-18 15:24:06 -05:00
|
|
|
|
|
|
|
run mkdir -p /opt/data/plans
|
|
|
|
copy schema.sql /opt/data
|
|
|
|
run cat /opt/data/schema.sql | sqlite3 /opt/data/users.db
|
|
|
|
run rm /opt/data/schema.sql
|
|
|
|
|
2020-07-19 10:04:08 -05:00
|
|
|
run apk del build-base perl-dev perl-app-cpanminus wget sqlite unzip
|
2020-07-18 15:24:06 -05:00
|
|
|
|
|
|
|
copy server.pl /opt
|
|
|
|
workdir /opt
|
|
|
|
|
|
|
|
entrypoint ["/usr/bin/perl", "server.pl"]
|