-
Notifications
You must be signed in to change notification settings - Fork 5
/
Containerfile
27 lines (25 loc) · 706 Bytes
/
Containerfile
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
# **Description:**
#
# Used to generate aviation checklists. Based on the work by https://github.com/freerobby/aviation-checklist
# with the patch https://github.com/freerobby/aviation-checklist/pull/2
#
# **Running:**
#
# ```sh
# podman run -d \
# -p 8080:80 \
# --name aviation-checklist \
# cdrage/aviation-checklist
# ```
#! First stage: Build
FROM node:20.13.0 as build-stage
RUN apt-get update && apt-get install -y git
WORKDIR /app
RUN git clone https://github.com/cdrage/aviation-checklist .
RUN yarn install
RUN yarn build
#! Second stage: Setup the nginx server
FROM nginx:stable-alpine
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]