This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/apis/userprofile/Dockerfile
2022-11-03 16:41:13 -04:00

20 lines
429 B
Docker

FROM node:12-alpine
COPY . /app
WORKDIR /app
EXPOSE 8080
# docker build argument
# This can be specified during the docker build step by adding " --build-arg build_version=<value>"
# App version can be accessed via the uri path /api/version/user
# https://vsupalov.com/docker-build-pass-environment-variables/
ARG build_version="userprofile default"
ENV APP_VERSION=$build_version
RUN npm install
CMD npm start