generated from akdasa-studios/template-service
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (20 loc) · 1.07 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
FROM node:19-alpine3.16
LABEL org.opencontainers.image.description "Authentication server for Shlokas."
# ---------------------------------------------------------------------------- #
# Arguments #
# ---------------------------------------------------------------------------- #
# Service version (default: dev)
ARG AUTH_VERSION=dev
# Github token for private repos (required)
ARG GITHUB_TOKEN
# ---------------------------------------------------------------------------- #
# Build #
# ---------------------------------------------------------------------------- #
WORKDIR /app/shlokas-auth
COPY . .
RUN npm install
RUN echo "VERSION=${AUTH_VERSION}" > .container/meta
# ---------------------------------------------------------------------------- #
# Run #
# ---------------------------------------------------------------------------- #
CMD [ "npm", "run", "start" ]