diff --git a/Dockerfile b/Dockerfile index b152ddf..4758522 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,9 @@ COPY . . # Remove development dependencies RUN npm prune --production +# Environment Variables +ENV NODE_ENV=production + # Expose port 3000 EXPOSE 3000 diff --git a/docker-compose.yml b/docker-compose.yml index b080692..14f76ad 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,9 +8,8 @@ services: # or build it locally (you need to clone the repo first): # build: # context: . + container_name: SimpleLinks restart: always - environment: - NODE_ENV: production ports: - 3000:3000 volumes: