Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 443 Bytes

docker-deployment.md

File metadata and controls

23 lines (15 loc) · 443 Bytes

Gasket Next.js Docker Deployment

Assuming you have domains, certs, load balancing, etc setup in your deployment environment. Here is a sample definition for a container that runs a Gasket application:

FROM node:14.15.0-alpine3.11

COPY --chown=node:node . /home/node/your_app/

WORKDIR /home/node/your_app

USER node:node

RUN npm ci
RUN npm run build
RUN npm prune --production

EXPOSE 8080

ENTRYPOINT ["npm", "start"]