Skip to content

Commit

Permalink
feat(docker): add docker and compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
alipourhabibi committed Nov 1, 2023
1 parent 86bf1b3 commit c5593f7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM golang:alpine

WORKDIR /app

COPY . /app

RUN go build -o httpdl
19 changes: 19 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: "3.4"

services:

http-downloader:
container_name: http-downloader
build:
context: .
stdin_open: true
tty: true

nginx:
container_name: nginx
image: nginx:latest
volumes:
- /tmp/nginx:/usr/share/nginx/html:ro
ports:
- 80:80

0 comments on commit c5593f7

Please sign in to comment.