-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (24 loc) · 804 Bytes
/
Dockerfile
File metadata and controls
27 lines (24 loc) · 804 Bytes
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
# syntax=docker/dockerfile:1
FROM debian:bullseye
# install app dependencies
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y curl apt-utils
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
RUN apt-get -y install git
RUN apt-get -y install coreutils
WORKDIR /usr/src/
RUN git clone https://github.com/bitgreen/carbon-api.git
WORKDIR /usr/src/carbon-api
RUN npm install -g npm@9.7.1
RUN /usr/bin/npm install
COPY .env.Docker /usr/src/carbon-api/.env
COPY autostart.sh /usr/src/carbon-api/
RUN chmod a+x /usr/src/carbon-api/autostart.sh
# final configuration
EXPOSE 3000
EXPOSE 22
ENV DATABASE_URL="postgresql://carbonapi:69542068ef65466a1c@db:5432/carbonapi?schema=public"
ENV API_PORT=3000
ENV TZ="UTC"
CMD "/usr/src/carbon-api/autostart.sh"