Placeholder site pre 2.0

This commit is contained in:
2017-09-26 21:20:32 +01:00
parent 77f2fb6bbe
commit 1b48b3fbc2
135 changed files with 421 additions and 13185 deletions

View File

@@ -1,30 +1,12 @@
FROM node:7.2.1-alpine
FROM node:8.4.0-alpine
# Need cURL to report to Rollbar
RUN apk --no-cache add curl git
COPY ./ /usr/src
WORKDIR /usr/src
# Copy app
COPY ./ /usr/src/app
WORKDIR /usr/src/app
RUN npm install --silent
# Install dev + prod dependencies and build release
RUN npm install --no-optional --silent
# Environment variables
ENV DATABASE_PATH db/wedding.db
ENV NODE_ENV production
ENV PORT 80
EXPOSE 80
# Run production build
RUN npm run build -- --release --silent
RUN curl https://api.rollbar.com/api/1/deploy/ \
-F access_token=8bf333d044df48c19a6929e4b1613a8e \
-F environment=production \
-F revision=$(git log -n 1 --pretty=format:"%H") \
-F local_username="$(git log -n 1 --pretty=format:"%an")"
WORKDIR /usr/src/app/build
CMD [ "node", "server.js" ]