-
Notifications
You must be signed in to change notification settings - Fork 311
/
Dockerfile
41 lines (34 loc) · 1.04 KB
/
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
41
##NODE temporary builder image
from node:20-alpine as uibuilder
COPY ./ /src-ui
WORKDIR /src-ui
RUN yarn install --frozen-lockfile
RUN yarn build:prod:aot
#Download base image debian buster
FROM debian:buster-slim
# Install packages
#COPY docker/krb5.conf /etc/krb5.conf
RUN apt-get update && \
export DEBIAN_FRONTEND=noninteractive && apt-get -yq install \
nginx \
&& apt-get clean
#Remove any extra packages we don't need from the container
# Also cleanup any random things we don't want to distribute
RUN export SUDO_FORCE_REMOVE=yes \
&& apt autoremove -y || true \
&& apt autoclean \
&& rm -rf /root/.cache \
&& rm -rf /usr/local/share/.cache \
&& rm -rf /usr/local/share/.config
# Overlay install
COPY docker/start.sh /start.sh
COPY docker/nginx.conf /etc/nginx/tn-nginx.conf
# =========================
# COPY OVER THE BUILDS FROM OTHER CONTAINERS
# =========================
# WebUI Build
# Copy over site directory from the builder
COPY --from=uibuilder /src-ui/dist /var/www/webui
# Configure Services and Port
CMD ["/start.sh"]
EXPOSE 80 443