-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
19 lines (15 loc) · 1013 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:22.04
LABEL maintainer="Aad Versteden <madnificent@gmail.com>"
# Install nodejs as per https://github.com/nodesource/distributions#installation-instruction
ARG NODE_MAJOR=20
RUN export DEBIAN_FRONTEND=noninteractive; apt-get -y update; apt-get -y install ca-certificates curl gnupg python3 build-essential git libfontconfig rsync
RUN mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
RUN apt-get -y update && apt-get -y install nodejs
# Install yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get -y install yarn
# Install ember-cli
RUN npm install -g ember-cli@5.4.0
WORKDIR /app