Added basics for deployment via Docker
This commit is contained in:
parent
f52485761e
commit
94f576bbfd
|
@ -0,0 +1,47 @@
|
||||||
|
# Git related files
|
||||||
|
.git
|
||||||
|
|
||||||
|
# compiled output
|
||||||
|
dist
|
||||||
|
tmp
|
||||||
|
out-tsc
|
||||||
|
# Only exists if Bazel was run
|
||||||
|
bazel-out
|
||||||
|
|
||||||
|
# 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
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Stage 1: Build
|
||||||
|
FROM node:alpine AS build
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
## Install app dependencies
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
## Bundle app source
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
## Compile App
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# Stage 2: Package up with the webserver
|
||||||
|
FROM nginx:alpine AS final
|
||||||
|
COPY --from=build /build/dist/frontend /usr/share/nginx/html
|
Loading…
Reference in New Issue