Skip to content

Commit

Permalink
Update dockerfile according issue: timeoff-management#505
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlattice committed Feb 19, 2022
1 parent 91e7573 commit 5d00086
Showing 1 changed file with 5 additions and 36 deletions.
41 changes: 5 additions & 36 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,8 @@
# -------------------------------------------------------------------
# Minimal dockerfile from alpine base
#
# Instructions:
# =============
# 1. Create an empty directory and copy this file into it.
#
# 2. Create image with:
# docker build --tag timeoff:latest .
#
# 3. Run with:
# docker run -d -p 3000:3000 --name alpine_timeoff timeoff
#
# 4. Login to running container (to update config (vi config/app.json):
# docker exec -ti --user root alpine_timeoff /bin/sh
# --------------------------------------------------------------------
FROM alpine:3.8

FROM node:15
EXPOSE 3000

LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.docker.cmd="docker run -d -p 3000:3000 --name alpine_timeoff"

RUN apk add --no-cache \
git \
make \
nodejs npm \
python \
vim

RUN adduser --system app --home /app
USER app
WORKDIR /app
RUN git clone https://github.com/timeoff-management/application.git timeoff-management
WORKDIR /app/timeoff-management

ENV NODE_ENV=production
RUN git clone https://github.com/Tlattice/timeoff-management-application.git timeoff
WORKDIR /timeoff
RUN npm install

RUN npm install --save mysql
CMD npm start

0 comments on commit 5d00086

Please sign in to comment.