-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1644 from Andygol/docker-image
Add Dockerfile and .dockerignore with targets in Makefile
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Ignore node_modules directory | ||
node_modules | ||
|
||
# Ignore any log files | ||
*.log | ||
|
||
# Ignore Dockerfile and .dockerignore itself | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore git repository files | ||
.git | ||
.gitignore | ||
|
||
# Ignore temporary files | ||
tmp | ||
*.tmp | ||
|
||
# Ignore build output | ||
dist | ||
build | ||
resources | ||
app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARG HUGO_VERSION= | ||
FROM hugomods/hugo:node-${HUGO_VERSION} | ||
|
||
WORKDIR /src | ||
|
||
RUN apk update && apk add --no-cache make curl bash | ||
|
||
RUN npm install yarn | ||
|
||
COPY . . | ||
|
||
RUN npx yarn install | ||
|
||
EXPOSE 1313 | ||
|
||
ENTRYPOINT ["make"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters