mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-24 12:05:19 -07:00
Dockerize hastebin
This commit is contained in:
parent
b69127fe66
commit
4d2562c20d
1 changed files with 21 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
FROM ubuntu:12.04
|
||||||
|
|
||||||
|
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get -y install python-software-properties build-essential
|
||||||
|
RUN add-apt-repository -y ppa:chris-lea/node.js
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get -y install nodejs
|
||||||
|
|
||||||
|
WORKDIR /opt/app
|
||||||
|
ADD . /opt/app
|
||||||
|
|
||||||
|
ENV NODE_ENV docker
|
||||||
|
|
||||||
|
RUN npm install --production
|
||||||
|
|
||||||
|
EXPOSE 7777
|
||||||
|
|
||||||
|
ENTRYPOINT ["node"]
|
||||||
|
|
||||||
|
CMD ["server.js"]
|
Loading…
Add table
Add a link
Reference in a new issue