-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:latest
# Install Hugo
ENV HUGO_VERSION 0.122.4
RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz \
&& tar -xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz \
&& mv hugo /usr/local/bin/ \
&& rm -r hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
# install GO
# RUN apt-get update && apt-get install -y golang-go
# Set the working directory in the container
#WORKDIR /usr/src/app
# Copy the package.json and package-lock.json (if available)
# COPY package*.json ./
# Install any dependencies
# RUN npm install
# Copy the project files into the container
COPY . .
# Expose the port the app runs on
EXPOSE 1313
# Command to run the development server
CMD ["hugo", "server", "-D", "--bind", "0.0.0.0"]