-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 845 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
FROM node:current-bullseye
# Fetch updates download dependencies
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y pciutils zip libncurses5 python libpython2.7 curl git gpg
# Cleans cache
RUN apt-get clean
# Copy the shell script and make it executable
COPY entry.sh entry.sh
RUN chmod a+x entry.sh
# Download the tizen install binary
RUN curl "https://usa.sdk-dl.tizen.org/web-cli_Tizen_Studio_4.5.1_usa_ubuntu-64.bin" -o install.bin && chmod a+x install.bin
# Download tizen studios and packages as node user
USER node
RUN ./install.bin --accept-license $HOME/tizen-studio
RUN $HOME/tizen-studio/package-manager/package-manager-cli.bin install \
Certificate-Manager NativeCLI cert-add-on --accept-license
# Remove the installed binary
USER root
RUN rm install.bin
USER node
# Run the script on startup
CMD ["/entry.sh"]