docekrfile test'

This commit is contained in:
Evanfeenstra 2021-07-16 13:42:39 -07:00
parent d9924453e5
commit 769645254d
2 changed files with 34 additions and 0 deletions

View file

@ -1 +1,2 @@
node_modules
npm-debug.log

33
Dockerfile.test Normal file
View file

@ -0,0 +1,33 @@
FROM node:15.1-alpine
RUN apk add --no-cache python make gcc g++ libmcrypt-dev
# RUN apk update && apk add python make g++
# gcc also?
ENV NODE_ENV development
ENV NODE_SCHEME http
WORKDIR /relay/
# COPY package.json ./
COPY . .
ENV PATH /relay/node_modules/.bin:$PATH
# RUN npm install -g node-gyp
RUN npm i -g @mapbox/node-pre-gyp
RUN npm update --force
RUN npm install sqlite3 --build-from-source
RUN npm install bcrypt
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
EXPOSE 80
ENTRYPOINT [ "npm", "run", "prod" ]