-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM symkat/mojo:latest | ||
|
||
USER root | ||
|
||
ADD . /home/app/src | ||
RUN chown -R app:app /home/app/src; | ||
|
||
USER app | ||
|
||
RUN eval $(perl -Mlocal::lib); \ | ||
cd /home/app/src/DB; \ | ||
dzil build; \ | ||
cpanm BlogDB-DB-*.tar.gz ; \ | ||
cd /home/app/src/Web; \ | ||
cpanm --installdeps .; \ | ||
cpanm --installdeps .; \ | ||
cpanm --installdeps .; |
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,30 @@ | ||
FROM debian:11 | ||
|
||
RUN apt-get update; \ | ||
apt-get install -y git build-essential libpq-dev libssl-dev libz-dev libexpat1-dev cpanminus liblocal-lib-perl \ | ||
postgresql-client postgresql-contrib postgresql python3-psycopg2; \ | ||
useradd -U -s /bin/bash -m app; | ||
|
||
USER app | ||
RUN eval $(perl -Mlocal::lib); \ | ||
echo 'eval $(perl -Mlocal::lib)' >> /home/app/.bashrc; \ | ||
cpanm Dist::Zilla Archive::Zip Minion Mojolicious::Plugin::XslateRenderer Mojolicious::Plugin::RenderFile Mojo::Pg \ | ||
DateTime::Format::Pg WebService::WsScreenshot LWP::UserAgent XML::RSS Test::Postgresql58 Test::More Test::Deep \ | ||
DBIx::Class::InflateColumn::Serializer DBIx::Class::Schema::Config DBIx::Class::DeploymentHandler Data::GUID \ | ||
MooseX::AttributeShortcuts MooseX::Getopt DBD::Pg; \ | ||
cpanm Dist::Zilla Archive::Zip Minion Mojolicious::Plugin::XslateRenderer Mojolicious::Plugin::RenderFile Mojo::Pg \ | ||
DateTime::Format::Pg WebService::WsScreenshot LWP::UserAgent XML::RSS Test::Postgresql58 Test::More Test::Deep \ | ||
DBIx::Class::InflateColumn::Serializer DBIx::Class::Schema::Config DBIx::Class::DeploymentHandler Data::GUID \ | ||
MooseX::AttributeShortcuts MooseX::Getopt DBD::Pg; \ | ||
cpanm Dist::Zilla Archive::Zip Minion Mojolicious::Plugin::XslateRenderer Mojolicious::Plugin::RenderFile Mojo::Pg \ | ||
DateTime::Format::Pg WebService::WsScreenshot LWP::UserAgent XML::RSS Test::Postgresql58 Test::More Test::Deep \ | ||
DBIx::Class::InflateColumn::Serializer DBIx::Class::Schema::Config DBIx::Class::DeploymentHandler Data::GUID \ | ||
MooseX::AttributeShortcuts MooseX::Getopt DBD::Pg; \ | ||
cpanm Dist::Zilla Archive::Zip Minion Mojolicious::Plugin::XslateRenderer Mojolicious::Plugin::RenderFile Mojo::Pg \ | ||
DateTime::Format::Pg WebService::WsScreenshot LWP::UserAgent XML::RSS Test::Postgresql58 Test::More Test::Deep \ | ||
DBIx::Class::InflateColumn::Serializer DBIx::Class::Schema::Config DBIx::Class::DeploymentHandler Data::GUID \ | ||
MooseX::AttributeShortcuts MooseX::Getopt DBD::Pg; \ | ||
cpanm Dist::Zilla Archive::Zip Minion Mojolicious::Plugin::XslateRenderer Mojolicious::Plugin::RenderFile Mojo::Pg \ | ||
DateTime::Format::Pg WebService::WsScreenshot LWP::UserAgent XML::RSS Test::Postgresql58 Test::More Test::Deep \ | ||
DBIx::Class::InflateColumn::Serializer DBIx::Class::Schema::Config DBIx::Class::DeploymentHandler Data::GUID \ | ||
MooseX::AttributeShortcuts MooseX::Getopt DBD::Pg; |