-
Notifications
You must be signed in to change notification settings - Fork 139
/
Dockerfile
23 lines (17 loc) · 1002 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
FROM ubuntu:22.04
MAINTAINER SDF Ops Team <[email protected]>
ADD . /app/src
WORKDIR /app/src
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
gpg curl ca-certificates git apt-transport-https && \
curl -sSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key|gpg --dearmor >/etc/apt/trusted.gpg.d/nodesource-key.gpg && \
echo "deb https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg |gpg --dearmor >/etc/apt/trusted.gpg.d/yarnpkg.gpg && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs yarn && \
yarn install && /app/src/node_modules/gulp/bin/gulp.js build
ENV PORT=80 UPDATE_DATA=false
EXPOSE 80
RUN node_modules/typescript/bin/tsc
ENTRYPOINT ["/usr/bin/node"]
CMD ["./backend/app.js"]