Dockerfile

From Svacer Wiki
Revision as of 13:01, 14 March 2023 by Admin (talk | contribs) (Created page with "Для сборки докер-образа Svacer мы используем следующий Dockerfile (актуален на момент версии 6.0.3). <pre> FROM ubuntu:18.04 LABEL maintainer="akuzmin@ispras.ru" ARG DEBIAN_FRONTEND=noninteractive RUN apt update && apt install -y --no-install-recommends curl \ && rm -rf /var/cache/apt/archives /var/lib/apt/lists/* \ && mkdir -p /svacer/bin && mkdir -p /svacer/store COPY svacer/bin/svacer /svacer...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

Для сборки докер-образа Svacer мы используем следующий Dockerfile (актуален на момент версии 6.0.3).

FROM ubuntu:18.04

LABEL maintainer="akuzmin@ispras.ru"

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y --no-install-recommends curl \
    && rm -rf /var/cache/apt/archives /var/lib/apt/lists/* \
    && mkdir -p /svacer/bin && mkdir -p /svacer/store 

COPY svacer/bin/svacer /svacer/bin/

WORKDIR /

ENV STORE=/svacer/store
ENV SVACER_PG_URL=postgres://svace:svace@127.0.0.1:5432/svace
ENV MEMSETTINGS=default
ENV PPROF_PORT=6060

EXPOSE 8080
EXPOSE ${PPROF_PORT}

CMD /svacer/bin/svacer --pprof=${PPROF_PORT} --memsettings=${MEMSETTINGS} server --store $STORE --pg $SVACER_PG_URL