Advertisement
kwasinski

Dockerfile for Mojolicious

Feb 10th, 2023
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.45 KB | None | 0 0
  1. FROM perl:5.34.0
  2.  
  3. WORKDIR /app
  4.  
  5. EXPOSE 80 80
  6.  
  7. RUN groupadd \
  8.         --gid 1000 perl \
  9.     && useradd \
  10.         --uid 1000 \
  11.         --gid perl \
  12.         --shell /bin/bash \
  13.         --create-home perl
  14.  
  15. RUN set -ex \
  16.   && apt-get \
  17.     update \
  18.   && apt-get install -y --no-install-recommends \
  19.     software-properties-common \
  20.     dirmngr
  21.  
  22.  
  23. COPY cpanfile cpanfile
  24.  
  25. RUN cpanm Mojolicious@"${MOJO_VERSION:-9.22}"
  26.  
  27. RUN cpanm < cpanfile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement