-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile-legacyConsole
21 lines (19 loc) · 875 Bytes
/
Dockerfile-legacyConsole
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM node:14 as consolebuilder
WORKDIR /app
RUN wget https://github.com/janelia-flyem/dvid-console/releases/download/v2.1.6/dvid-console-2.1.6.tar.gz
RUN tar -zxvf dvid-console-2.1.6.tar.gz
FROM ubuntu:20.04 as builder
ARG DVID_VERSION=0.9.7
MAINTAINER flyem project team
LABEL maintainer="[email protected]"
LABEL dvid_version=${DVID_VERSION}
LABEL console_version='2.1.6'
RUN apt-get update && apt-get install -y curl bzip2
WORKDIR /app/
COPY --from=consolebuilder /app/dvid-console /console
RUN curl -L -O https://github.com/janelia-flyem/dvid/releases/download/v${DVID_VERSION}/dvid-${DVID_VERSION}-dist-linux.tar.bz2
RUN tar -jxf dvid-${DVID_VERSION}-dist-linux.tar.bz2
RUN ln -s /app/dvid-${DVID_VERSION}-dist-linux/bin/dvid /usr/local/bin
COPY ./conf/config.example /conf/config.toml
CMD ["dvid", "-verbose", "serve", "/conf/config.toml"]
#CMD ["/bin/bash"]