Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a Docker Image for Keystone 5 #1266

Closed
jesstelford opened this issue May 31, 2019 · 1 comment
Closed

How to create a Docker Image for Keystone 5 #1266

jesstelford opened this issue May 31, 2019 · 1 comment
Assignees

Comments

@jesstelford
Copy link
Contributor

Part of "Keystone 5 deployment strategies" #1257

WIP Notes:

An example Dockerfile for an older version of Keystone 5:

FROM node:10.9.0-alpine

LABEL name "my-ks-app"

RUN mkdir /app
WORKDIR /app
COPY ./ /app

# We need some other deps before we install. Then we need to clean them up afer.
# See https://github.com/nodejs/docker-node/issues/384#issuecomment-305208112
# And https://github.com/npm/uid-number/issues/3#issuecomment-287413039
RUN apk --no-cache add --virtual native-deps g++ gcc libgcc libstdc++ linux-headers make python && \
  npm config set unsafe-perm true && \
  npm install --quiet node-gyp -g && \
  yarn && \
  apk del native-deps

EXPOSE 60000
CMD ["yarn", "start"]
@sarneaud
Copy link
Contributor

We have some docs now with https://github.com/keystonejs/keystone-5/pull/1682

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants