Skip to content

Commit

Permalink
Cleaning and commenting Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
RmnRss committed Sep 14, 2020
1 parent 07e10b0 commit b911ccf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions Dockerfile.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Dockerfile used to create the production image
# Environment variables are set inside the Kubernetes cofiguration files

FROM node:12-alpine

# Create app directory
Expand Down
3 changes: 3 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Dockerfile used in the main docker compose to create the image of the API
# Environment variables and start commands are handled inside the docker compose

FROM strapi/base

# Create app directory
Expand Down
4 changes: 4 additions & 0 deletions api/Dockerfile.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Dockerfile used to create the production image
# Environment variables are set inside the Kubernetes cofiguration files

FROM strapi/base

# Create app directory
Expand All @@ -19,6 +22,7 @@ ENV DATABASE_PORT=5432
ENV DATABASE_NAME=strapi
ENV DATABASE_USERNAME=
ENV DATABASE_PASSWORD=
ENV PRODUCTION_URL=
ENV ADMIN_JWT_SECRET=

RUN npm run build
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Docker compose files used for dev environments

version: "3.8"

services:
Expand Down

0 comments on commit b911ccf

Please sign in to comment.