Skip to content

Commit

Permalink
Add dockerfile cpanfile and public static files
Browse files Browse the repository at this point in the history
  • Loading branch information
drdrew42 committed May 15, 2020
1 parent c5d9c83 commit 5f35afb
Show file tree
Hide file tree
Showing 36,855 changed files with 1,556,066 additions and 6 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM alpine:3.4
MAINTAINER Mojolicious

WORKDIR /usr/app

COPY cpanfile .

RUN apk update && \
apk add perl perl-io-socket-ssl perl-dbd-pg perl-dev g++ make wget curl && \
curl -L https://cpanmin.us | perl - App::cpanminus && \
cpanm --installdeps . -M https://cpan.metacpan.org && \
apk del perl-dev g++ make wget curl && \
rm -rf /root/.cpanm/* /usr/local/share/man/*

COPY . .

EXPOSE 3000

CMD morbo ./script/render_app
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
This is a PG Renderer derived from the WeBWorK2 codebase
* https://github.com/openwebwork/WeBWorK2

clone the openwebwork/webwork-open-problem-library repo into the corresponding folder at the root of this project
(an even better plan would mount the repository as a volume)
MOUNT the openwebwork/webwork-open-problem-library repo at:
/usr/app/webwork-open-problem-library

* https://github.com/openwebwork/webwork-open-problem-library

clone (or mount) the openwebwork/pg repository into lib/PG
MOUNT the openwebwork/pg repository at:
/usr/app/lib/PG

* https://github.com/openwebwork/pg

begin the app with morbo ./script/render_app and access on localhost:3000

CPAN dependencies:
Mojo::Base
1 change: 1 addition & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requires "Mojolicious";
Loading

0 comments on commit 5f35afb

Please sign in to comment.