diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b32140f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +# syntax=docker/dockerfile:1 + +FROM node:18-alpine +WORKDIR /app +COPY . . +RUN yarn install --production +CMD ["node", "src/index.js"] +EXPOSE 3000 \ No newline at end of file diff --git a/README.md b/README.md index 3c6ef2d..2bdb208 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,22 @@ -# Getting started +# To-Do container challenge -This repository is a sample application for users following the getting started guide at https://docs.docker.com/get-started/. +![Docker Ahmedabad (2)](https://github.com/DockerAhmedabad/To-do-container/assets/146727918/1c6d4518-2d87-4266-ab82-ed3c3c6af74f) -The application is based on the application from the getting started tutorial at https://github.com/docker/getting-started \ No newline at end of file + +## Beginners + +### Challenge Steps + +- Follow the steps mentioned in the [link](https://docs.docker.com/get-started/.) and Containerise your To-Do list app. +- Run the container locally and create your own to-do list +- Take a screenshot of your to-do list. +- Raise a PR and attach the screenshot with the PR. + +## Professionals + +### Challenge Steps +- Follow the steps mentioned in the [link](https://docs.docker.com/get-started/.) and Containerise your To-Do list app. +- Run the container locally and create your own to-do list +- Take a screenshot of your to-do list. +- **Create a Github action(CICD) that automates the whole containerisation process.** (Recommend stages to include **Docker build, Push Docker Image to Docker Hub**) +- Raise the PR with your to-do list screenshot. diff --git a/dockercontainer.png b/dockercontainer.png new file mode 100644 index 0000000..f6d6eaf Binary files /dev/null and b/dockercontainer.png differ diff --git a/to-do-app.png b/to-do-app.png new file mode 100644 index 0000000..a29cdd9 Binary files /dev/null and b/to-do-app.png differ