Skip to content
Snippets Groups Projects

Containerized application and updated README.md file

Merged Rokas Stankunas requested to merge 14-containerize-application into main
4 files
+ 42
20
Compare changes
  • Side-by-side
  • Inline
Files
4
Dockerfile 0 → 100644
+ 17
0
# We're taking the latest Alpine version, because it's the smallest
# and has the least amount of dependencies
FROM alpine:latest
# Set working directory.
WORKDIR /app
# Copy the current directory contents (whole project) into the container at /app
ADD . /app
# Install dependencies
RUN apk update && \
apk add --no-cache nodejs npm && \
npm install;
# Run the app
ENTRYPOINT ["node", "server"]
\ No newline at end of file
Loading