<commit_before># build
FROM fpco/stack-build:lts-15 AS build-env

RUN mkdir -p /opt/monaba-build
WORKDIR /opt/monaba-build

RUN apt-get update && apt-get -y install \
  libcrypto++-dev \
  libssl-dev \
  libgeoip-dev

COPY stack.yaml ./stack.yaml
COPY Monaba.cabal ./Monaba.cabal
COPY nano-md5-0.1.2 ./nano-md5-0.1.2
RUN stack setup
RUN stack build --only-snapshot
RUN stack install --only-dependencies
COPY . ./

RUN stack install

COPY captcha captcha
WORKDIR /opt/monaba-build/captcha
RUN stack setup --silent
RUN stack install

# run
FROM ubuntu:16.04
RUN mkdir -p /opt/monaba
WORKDIR /opt/monaba

RUN apt-get update && apt-get -y install \
  php7.0-fpm \
  libav-tools \
  imagemagick \
  exiftool \
  libpq-dev \
  libmagickwand-dev \
  libmagickcore-dev \
  libgeoip-dev \
  libicu-dev \
  libcrypto++-dev

COPY ./geshi ./geshi
ADD ./GeoIPCity.dat.gz /usr/share/GeoIP/GeoIPCity.dat

COPY --from=build-env /opt/monaba-build/highlight.php ./highlight.php
COPY --from=build-env /opt/monaba-build/config ./config<commit_msg>Test alpine for CI/CD<commit_after># build
FROM fpco/stack-build:lts-15 AS build-env

RUN mkdir -p /opt/monaba-build
WORKDIR /opt/monaba-build

RUN apt-get update && apt-get -y install \
  libcrypto++-dev \
  libssl-dev \
  libgeoip-dev

COPY stack.yaml ./stack.yaml
COPY Monaba.cabal ./Monaba.cabal
COPY nano-md5-0.1.2 ./nano-md5-0.1.2
RUN stack setup
RUN stack build --only-snapshot
RUN stack install --only-dependencies
COPY . ./

RUN stack install

COPY captcha captcha
WORKDIR /opt/monaba-build/captcha
RUN stack setup --silent
RUN stack install

# run
FROM alpine:latest
RUN mkdir -p /opt/monaba
WORKDIR /opt/monaba

RUN apk update && apk add php7 ffmpeg imagemagick exiftool libpq libmagic geoip icu crypto++

COPY ./geshi ./geshi
ADD ./GeoIPCity.dat.gz /usr/share/GeoIP/GeoIPCity.dat

COPY --from=build-env /opt/monaba-build/highlight.php ./highlight.php
COPY --from=build-env /opt/monaba-build/config ./config
{'fraction_non_alphanumeric': 0.12339331619537275, 'fraction_numerical': 0.013881748071979434, 'mean_word_length': 3.1054852320675104, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6841099', 'n_tokens_mistral': 782, 'n_tokens_neox': 743, 'n_words': 192}