mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-13 01:36:22 +00:00
21 lines
572 B
Docker
21 lines
572 B
Docker
# Creates a docker image with only the app as an executable unit
|
|
# Dependencies need to be installed beforehand
|
|
# Needs to be build beforehand
|
|
# docker build -t registry.gitlab.com/openstapps/app/executable:core-x.y -f Dockerfile.Executable .
|
|
FROM node:14-alpine
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
# To use ng directly
|
|
ENV PATH /app/node_modules/.bin:$PATH
|
|
|
|
EXPOSE 8100
|
|
|
|
# Because the dependencies were installed from the builder-Image,
|
|
# or locally, we need to rebuild node-sass library
|
|
RUN npm rebuild node-sass
|
|
|
|
# Starts the app
|
|
CMD ng run app:serve --host=0.0.0.0 --port=8100
|