Skip to content

Coded up a simple scorekeeper app and dockerized it to get more familiar with Docker :D

Notifications You must be signed in to change notification settings

abhishekpawl/scorekeeper-dockerize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scorekeeper-dockerize

Built a pretty simple scorekeeper app and dockerized it.

Used Apache server to host the files for the static webpage.

The .env file mentions the version of the Apache server image, the external port to be mapped to that of the port of the Apache server container i.e. port 80, the desired name of the image, built and the name of the dockerfile.

APACHE_VERSION=alpine
PORT=8000
IMAGE_NAME=abhishekpawl/scorekeeper
DOCKERFILE_NAME=Dockerfile

The Dockerfile contains the metadata to build the image.

ARG APACHE_VERSION
FROM httpd:$APACHE_VERSION
COPY . /usr/local/apache2/htdocs

The docker-compose.yml file contains the data in yaml format to build the image from the Dockerfile and run the containers of that image.

version: '3'
services:
  scorekeeper:
    build:
      context: .
      dockerfile: ${DOCKERFILE_NAME}
      args:
        - APACHE_VERSION=${APACHE_VERSION}
    image: '${IMAGE_NAME}'
    ports:
      - "${PORT}:80"

About

Coded up a simple scorekeeper app and dockerized it to get more familiar with Docker :D

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published