Set up basic env vars to tell BEAM that stdio is UTF-8-ready

This commit is contained in:
Andrew Mayorov 2021-12-09 11:11:52 +03:00
parent 83565227dd
commit 4b8f9930fb
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D

View File

@ -8,6 +8,8 @@ RUN rebar3 as prod release
# Keep in sync with Erlang/OTP version in build image # Keep in sync with Erlang/OTP version in build image
FROM erlang:24.1.3.0-slim FROM erlang:24.1.3.0-slim
ENV SERVICE=dominant ENV SERVICE=dominant
ENV CHARSET=UTF-8
ENV LANG=C.UTF-8
COPY --from=builder /build/_build/prod/rel/${SERVICE} /opt/${SERVICE} COPY --from=builder /build/_build/prod/rel/${SERVICE} /opt/${SERVICE}
WORKDIR /opt/${SERVICE} WORKDIR /opt/${SERVICE}
ENTRYPOINT [] ENTRYPOINT []