LoginSignup
2
2

More than 5 years have passed since last update.

Firebase + Nuxt.js + node の Dockerfile 2019年1月14日時点

Posted at

踏み抜いた箇所

  • node:6-alpine では async が使えない。
  • node:alpine node:11-alpine では node-gyp のビルドが通らない。

Dockerfile

FROM node:8-alpine

RUN apk add --no-cache make gcc g++ python && \
  npm install --production --silent && \
  apk del make gcc g++ python
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY ./package.json $WORKDIR
COPY ./package-lock.json $WORKDIR
RUN npm install

COPY . $WORKDIR
RUN npm run build
ENV HOST 0.0.0.0
EXPOSE 3000

CMD [ "npm", "start" ]
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2