File tree Expand file tree Collapse file tree 1 file changed +7
-29
lines changed Expand file tree Collapse file tree 1 file changed +7
-29
lines changed Original file line number Diff line number Diff line change 13
13
# You should have received a copy of the GNU Affero General Public License
14
14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
16
- # Compile
17
- FROM rust:1.63-alpine AS compiler
18
-
19
- RUN apk add -q --update-cache --no-cache build-base openssl-dev
16
+ FROM alpine:3.14
20
17
18
+ RUN apk update --quiet \
19
+ && apk add -q --no-cache libgcc curl
20
+
21
21
# Create appuser
22
22
ENV USER=parseable
23
23
ENV UID=10001
@@ -31,36 +31,14 @@ RUN adduser \
31
31
--uid "${UID}" \
32
32
"${USER}"
33
33
34
- WORKDIR /parseable
35
-
36
- COPY . .
37
-
38
- RUN set -eux; \
39
- apkArch="$(apk --print-arch)" ; \
40
- if [ "$apkArch" = "aarch64" ]; then \
41
- export JEMALLOC_SYS_WITH_LG_PAGE=16; \
42
- fi && \
43
- cargo build --release
44
-
45
- # Run
46
- FROM alpine:3.14
47
-
48
- RUN apk update --quiet \
49
- && apk add -q --no-cache libgcc curl
50
-
51
- # add parseable to the `/bin` so you can run it from anywhere and it's easy
52
- # to find.
53
- COPY --from=compiler /etc/passwd /etc/passwd
54
- COPY --from=compiler /etc/group /etc/group
55
-
56
34
# This directory should hold all the data related to parseable so we're going
57
35
# to move our PWD in there.
58
36
WORKDIR /parseable
59
37
60
- COPY --from=compiler /parseable/target/release /parseable /bin/parseable
38
+ ADD https://github.com/parseablehq /parseable/releases/latest/download/parseable_linux_x86_64 /bin/parseable
61
39
62
- USER parseable:parseable
40
+ USER parseable:parseable
63
41
64
42
EXPOSE 8000/tcp
65
43
66
- CMD ["/bin/parseable" ]
44
+ CMD ["/bin/parseable" ]
You can’t perform that action at this time.
0 commit comments