Skip to content

Commit

Permalink
Merge pull request #206 from rakshit087/docker-config
Browse files Browse the repository at this point in the history
Docker Configuration
  • Loading branch information
colinkiama authored Nov 12, 2023
2 parents 40e56d7 + 2edc336 commit 6d936f7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Zola Dev Container",
"build": { "dockerFile": "Dockerfile" },
"forwardPorts": [1111],
"workspaceFolder": "/app",
"mounts": ["source=.", "target=/app", "type=bind", "consistency=cached"],
"appPort": [1111],
"remoteUser": "vscode"
}
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM alpine:latest

# Install zola
RUN apk add zola

# Set the working directory
WORKDIR /app

# Copy the application files to the container
COPY . /app

# Expose 1111 to the host's 1111 port
EXPOSE 1111

# Define the command to run the application
CMD ["zola", "serve", "--interface", "0.0.0.0", "--base-url", "/"]
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'
services:
man:
build: .
image: vala-website
ports:
- "1111:1111"
volumes:
- .:/app

0 comments on commit 6d936f7

Please sign in to comment.