mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-23 17:50:19 +01:00
Add basic Docker image
This commit is contained in:
parent
d2c5641886
commit
0f01dc4d55
3 changed files with 40 additions and 0 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
npm-debug.log
|
||||
node_modules
|
||||
*.swp
|
||||
*.swo
|
||||
data
|
||||
*.DS_Store
|
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
FROM node:lts-alpine
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
RUN npm install redis@0.8.1 && \
|
||||
npm install pg@4.1.1 && \
|
||||
npm install memcached@2.2.2 && \
|
||||
npm install aws-sdk@2.738.0 && \
|
||||
npm install rethinkdbdash@2.3.31
|
||||
|
||||
ENV HOST 0.0.0.0
|
||||
|
||||
EXPOSE 7777
|
||||
STOPSIGNAL SIGINT
|
||||
ENTRYPOINT [ "node", "server.js" ]
|
||||
|
||||
CMD ["npm", "start"]
|
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
version: "3.0"
|
||||
services:
|
||||
haste-server:
|
||||
build: .
|
||||
ports:
|
||||
- 7777:7777
|
||||
volumes:
|
||||
- haste-data:/usr/src/app/data
|
||||
|
||||
volumes:
|
||||
haste-data:
|
Loading…
Reference in a new issue