Skip to content

Commit

Permalink
Working docker image + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
drdrew42 committed May 16, 2020
1 parent 5f35afb commit 4f2259c
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
.gitignore
**/.DS_Store
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
*.DS_Store

!Build/
.last_cover_stats
Expand Down
33 changes: 24 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
FROM alpine:3.4
MAINTAINER Mojolicious
FROM ubuntu:18.04
MAINTAINER Rederly

WORKDIR /usr/app

COPY cpanfile .
RUN apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
curl \
dvipng \
gcc \
make \
libgd-perl \
cpanminus \
libstring-shellquote-perl \
libproc-processtable-perl \
libdatetime-perl \
libdbi-perl \
libtie-ixhash-perl \
libuuid-tiny-perl \
libjson-perl \
liblocale-maketext-lexicon-perl \
libclass-accessor-perl \
libcgi-pm-perl \
&& apt-get clean \
&& rm -fr /var/lib/apt/lists/* /tmp/*

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/*
RUN cpanm install Mojolicious Date::Format \
&& rm -fr ./cpanm /root/.cpanm /tmp/*

COPY . .

Expand Down
1 change: 0 additions & 1 deletion cpanfile

This file was deleted.

Binary file removed lib/.DS_Store
Binary file not shown.
File renamed without changes.
Binary file removed lib/WeBWorK/.DS_Store
Binary file not shown.
Binary file removed lib/WeBWorK/lib/.DS_Store
Binary file not shown.
Binary file removed lib/WeBWorK/lib/WeBWorK/.DS_Store
Binary file not shown.
File renamed without changes.

0 comments on commit 4f2259c

Please sign in to comment.