-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created Dockerfile and updated ReadMe
Signed-off-by: Veinar <[email protected]>
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 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,22 @@ | ||
FROM alpine:3 | ||
|
||
# Setup env | ||
ENV NODE_OPTIONS=--openssl-legacy-provider | ||
|
||
# Install Node and npm | ||
RUN apk add --update autoconf automake build-base libtool nasm pkgconf nodejs npm git && rm -rf /var/cache/apk/* | ||
|
||
# Change workdir to have separate place for app | ||
WORKDIR /gitops-website | ||
|
||
# Add required files | ||
ADD . . | ||
|
||
# Install dependencies | ||
RUN npm i | ||
|
||
# Expose port for server | ||
EXPOSE 8000 | ||
|
||
# Create entrypoint | ||
ENTRYPOINT ["npm", "start"] |
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
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