mirror of
https://github.com/stakwork/sphinx-relay.git
synced 2026-08-13 12:33:24 +02:00
docekrfile test'
This commit is contained in:
parent
d9924453e5
commit
769645254d
2 changed files with 34 additions and 0 deletions
|
|
@ -1 +1,2 @@
|
|||
node_modules
|
||||
npm-debug.log
|
||||
|
|
|
|||
33
Dockerfile.test
Normal file
33
Dockerfile.test
Normal 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" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue