Skip to content

Commit

Permalink
Docker container readme and dockerfile (#6693)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq authored Jul 23, 2024
1 parent b179b66 commit 9ef7be3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 41 deletions.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,16 @@ FROM node:18-alpine
WORKDIR /usr/src/app

# Install dependencies
RUN apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python3 tini
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make vips-dev python3 tini git
RUN npm install --quiet node-gyp -g
# Add Tini
ENTRYPOINT ["/sbin/tini", "--"]

# Install app dependencies
COPY package.json .
COPY package-lock.json .
RUN npm ci --only=production

# Make sure to get latest
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache

# Bundle app source
COPY . .

# Install app dependencies
RUN npm ci

EXPOSE 80 8080
WORKDIR "platform"
ENV NODE_ENV=production
CMD ["node", "serve.js"]
CMD ["/bin/sh"]
27 changes: 0 additions & 27 deletions Dockerfile.development

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ You can contribute your changes back to the main repository by [creating a pull

## Setup with Docker

We provide a Dockerfile for development based on one of the official Python-images. When using this you can skip setting up Python and a local installation of Grow on your machine. Though make sure you completed all other installation steps, like cloning the repository, installing all Node.js dependencies and exporting a valid GitHub token as outlined in [Fork & clone the repository](#fork--clone-the-repository) and [Develop](#develop). When those steps are completed instead of running the project with `npm run develop` you can build a development Docker image with the followiung command, run from the project root directory:
We provide a Dockerfile for development based on one of the official Python-images. When using this you can skip setting up Python and a local installation of Grow on your machine. Though make sure you completed all other installation steps, like cloning the repository, installing all Node.js dependencies and exporting a valid GitHub token as outlined in [Fork & clone the repository](#fork--clone-the-repository) and [Develop](#develop). When those steps are completed instead of running the project with `npm run develop` you can build a Docker image with the followiung command, run from within the Docker container:


```sh
$ npx gulp developImageBuild
Expand Down

0 comments on commit 9ef7be3

Please sign in to comment.