diff --git a/Dockerfile b/Dockerfile index 0aed7ab4d..8b9fbf5c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,11 +13,11 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -# Compile -FROM rust:1.63-alpine AS compiler - -RUN apk add -q --update-cache --no-cache build-base openssl-dev +FROM alpine:3.14 +RUN apk update --quiet \ + && apk add -q --no-cache libgcc curl + # Create appuser ENV USER=parseable ENV UID=10001 @@ -31,36 +31,14 @@ RUN adduser \ --uid "${UID}" \ "${USER}" -WORKDIR /parseable - -COPY . . - -RUN set -eux; \ - apkArch="$(apk --print-arch)"; \ - if [ "$apkArch" = "aarch64" ]; then \ - export JEMALLOC_SYS_WITH_LG_PAGE=16; \ - fi && \ - cargo build --release - -# Run -FROM alpine:3.14 - -RUN apk update --quiet \ - && apk add -q --no-cache libgcc curl - -# add parseable to the `/bin` so you can run it from anywhere and it's easy -# to find. -COPY --from=compiler /etc/passwd /etc/passwd -COPY --from=compiler /etc/group /etc/group - # This directory should hold all the data related to parseable so we're going # to move our PWD in there. WORKDIR /parseable -COPY --from=compiler /parseable/target/release/parseable /bin/parseable +ADD https://github.com/parseablehq/parseable/releases/latest/download/parseable_linux_x86_64 /bin/parseable -USER parseable:parseable +USER parseable:parseable EXPOSE 8000/tcp -CMD ["/bin/parseable"] +CMD ["/bin/parseable"]