Commit b08267a1 authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Add Dockerfile

parent b6ad04a1
Pipeline #122209 canceled with stages
# Copied from gitignore and modified to be used for docker
# See http://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/node_modules
# profiling files
chrome-profiler-events.json
speed-measure-plugin.json
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
# System Files
.DS_Store
Thumbs.db
# reports (custom)
/reports
FROM node:14 AS build
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build -- --prod
FROM nginx AS server
COPY config/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist/* /usr/share/nginx/html
server {
listen 80;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment