🏗️ Sets environment in Docker, and adds recompile watcher to start script

Ensures environment is correctly set to production, and sets build-and-start script to now recompoile when conf.yml is updated
This commit is contained in:
Alicia Sykes
2021-06-20 16:58:03 +01:00
parent e75b0c780f
commit 01af5fb5b4
3 changed files with 11 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ FROM node:lts-alpine
ENV PORT 80
ENV DIRECTORY /app
ENV IS_DOCKER true
ENV NODE_ENV production
# Create and set the working directory
WORKDIR ${DIRECTORY}