Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Optimize Dockerfile #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM crystallang/crystal:0.27.0
WORKDIR /data

# For the Lucky server
EXPOSE 5000
# For running crystal play
EXPOSE 8080

RUN apt-get update && \
apt-get install -y libnss3 libgconf-2-4 chromium-browser build-essential curl libreadline-dev libevent-dev libssl-dev libxml2-dev libyaml-dev libgmp-dev git golang-go postgresql postgresql-contrib && \
apt-get install -y libnss3 libgconf-2-4 chromium-browser curl libreadline-dev golang-go postgresql postgresql-contrib && \
# Set up node and yarn
curl --silent --location https://deb.nodesource.com/setup_11.x | bash - && \
apt-get install -y nodejs && \
Expand All @@ -16,8 +22,6 @@ RUN apt-get update && \
# Clean things up
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN mkdir /data
WORKDIR /data

# Install shards
COPY shard.* ./
Expand All @@ -28,7 +32,3 @@ COPY package.json yarn.lock ./
RUN yarn install

COPY . /data
# For the Lucky server
EXPOSE 5000
# For running crystal play
EXPOSE 8080