dbgate/docker/Dockerfile

31 lines
974 B
Docker
Raw Permalink Normal View History

2024-05-13 12:47:32 +00:00
FROM ubuntu:22.04
2020-03-15 08:35:34 +00:00
2022-04-21 16:59:07 +00:00
RUN apt-get update && apt-get install -y \
curl \
gnupg \
2022-04-21 16:59:07 +00:00
iputils-ping \
iproute2 \
unixodbc \
gcc \
g++ \
make
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource-archive-keyring.gpg \
2024-05-08 08:27:35 +00:00
&& echo "deb [signed-by=/usr/share/keyrings/nodesource-archive-keyring.gpg] https://deb.nodesource.com/node_18.x jammy main" | tee /etc/apt/sources.list.d/nodesource.list \
&& echo "deb-src [signed-by=/usr/share/keyrings/nodesource-archive-keyring.gpg] https://deb.nodesource.com/node_18.x jammy main" | tee -a /etc/apt/sources.list.d/nodesource.list \
&& apt-get update && apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g yarn
2022-04-21 16:59:07 +00:00
2020-03-15 20:10:38 +00:00
WORKDIR /home/dbgate-docker
2020-03-15 08:35:34 +00:00
COPY . .
2022-04-21 16:59:07 +00:00
RUN ["chmod", "+x", "/home/dbgate-docker/entrypoint.sh"]
2020-03-15 20:10:38 +00:00
WORKDIR /home/dbgate-docker
EXPOSE 3000
2022-05-17 19:05:48 +00:00
VOLUME /root/.dbgate
2022-04-21 16:59:07 +00:00
CMD ["/home/dbgate-docker/entrypoint.sh"]