Skip to content

Commit

Permalink
Add a docker image for armv7hf.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorccu committed Aug 8, 2015
1 parent 3f8dfa0 commit afa8e7b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docker/armv7hf/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM openstf/armv7hf-base:v1.0.1

# Add a user for the app.
RUN useradd --system \
--no-create-home \
--shell /usr/sbin/nologin \
--home-dir /app \
stf

# Sneak the stf executable into $PATH.
ENV PATH /app/bin:$PATH

# Work in app dir by default.
WORKDIR /app

# Export default app port, not enough for all processes but it should do
# for now.
EXPOSE 3000

# Copy app source.
COPY . /app/

# Get the rest of the dependencies and build.
RUN export PATH=/app/node_modules/.bin:$PATH && \
npm install && \
bower install --allow-root && \
gulp build

# Switch to weak user.
USER stf

# Show help by default.
CMD stf --help

0 comments on commit afa8e7b

Please sign in to comment.