forked from dcaputo-harmoni/open-balena-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (29 loc) · 1020 Bytes
/
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
32
33
34
35
36
37
38
39
40
FROM debian:bullseye
ARG DEBIAN_FRONTEND=noninteractive
# Update nodejs version to 17.x
RUN apt-get update && apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_17.x | bash -
RUN apt-get update && apt-get install -y \
nodejs \
node-typescript \
jq \
unzip \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
# Install balena-cli
ENV BALENA_CLI_VERSION 15.2.3
RUN curl -sSL https://github.com/balena-io/balena-cli/releases/download/v$BALENA_CLI_VERSION/balena-cli-v$BALENA_CLI_VERSION-linux-x64-standalone.zip > balena-cli.zip && \
unzip balena-cli.zip && \
mv balena-cli/* /usr/bin && \
rm -rf balena-cli.zip balena-cli
ENV BALENARC_BALENA_URL=digital-concepts.eu
COPY ./server ./server
COPY ./src ./src
COPY ./webpack.config.js ./
COPY ./package.json ./
COPY ./package-lock.json ./
RUN npm install --no-fund --no-update-notifier && \
npm install portfinder wait-port node-fetch && \
npm cache clean --force
COPY start.sh ./
CMD ["bash", "start.sh"]