generated from akdasa-studios/template-app
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 849 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
# ---------------------------------------------------------------------------- #
# Build stage #
# ---------------------------------------------------------------------------- #
FROM node:19.8.1-alpine3.17 AS build
ARG GITHUB_TOKEN
WORKDIR /app
# install and cache app dependencies
COPY package.json package-lock.json .npmrc ./
RUN GITHUB_TOKEN=${GITHUB_TOKEN} npm ci
# build app
COPY . .
RUN npm run build
# ---------------------------------------------------------------------------- #
# Final stage #
# ---------------------------------------------------------------------------- #
FROM nginx:1.23.3-alpine
COPY --from=0 ./app/dist /etc/nginx/html/
COPY ./host/shlokas-admin.conf /etc/nginx/conf.d/default.conf