Commit 6165ca11 authored by Artemis's avatar Artemis 🐱

Fix: Added CSS build step on dockerfile, updated docker-compose

parent 13bb120c
# Build step
FROM node:12-alpine as css-env
ADD . /src
WORKDIR /src
RUN yarn && \
yarn build
FROM golang:alpine as build-env
ADD . /src
WORKDIR /src
......@@ -18,6 +25,7 @@ FROM scratch
MAINTAINER Artemis
WORKDIR /app
COPY --from=css-env /src/static /app/static
COPY --from=build-env /paste /app/paste
COPY --from=build-env /src/templates /app/templates
CMD ["/app/paste"]
......
......@@ -3,8 +3,6 @@ version: '3'
services:
redis:
image: redis:5-alpine
expose:
- 6379
paste:
image: paste:latest
environment:
......@@ -13,8 +11,5 @@ services:
ports:
- "127.0.0.1:1234:1234"
expose: ["1234"]
restart: on-failure
depends_on:
- redis
links:
- redis
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment