-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample.Dockerfile
31 lines (23 loc) · 981 Bytes
/
example.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This Dockerfile serves as an example of how to run Estuary
FROM rust:1-slim-buster
# Estuary relies on being able to run `git` on the command-line.
# It additionally uses the `git2` crate which indirectly depends on `libssl`.
RUN apt-get update && apt-get install -y \
git \
pkg-config libssl-dev \
&& rm -rf /var/lib/apt/lists/*
RUN cargo install estuary
# Use a volume to store our service data
VOLUME ["/var/lib/estuary"]
# Configure the service.
#
# These env vars will get the files Estuary needs to write into our volume and
# enable some basic logging HOWEVER you'll still need to configure the
# **base url** based on the public host/port you want to use.
ENV ESTUARY_INDEX_DIR="/var/lib/estuary/index" \
ESTUARY_CRATE_DIR="/var/lib/estuary/crates" \
RUST_LOG="actix_web=INFO,estuary=INFO"
EXPOSE 7878
# When running the container, don't forget you'll need to specify the base url
# either via a flag or environment variable.
ENTRYPOINT ["estuary"]